FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

opentracing-contrib/java-vertx-web: OpenTracing instrumentation for Vert.x web package · GitHub

Repository files navigation

OpenTracing Vert.x Web Instrumentation

OpenTracing instrumentation for Vert.x Web project. This repository currently contains handler which traces server requests.

Configuration

Router router = Router.router(vertx);

TracingHandler handler = new TracingHandler(tracer);
router.route()
        .order(-1).handler(handler)
        .failureHandler(handler);

Accessing server span context

Because Vert.x is event loop based, thread local implementations of span source do not work. The current solution is to get span context from RoutingContext and then pass it manually around.

SpanContext serverContext = TracingHandler.serverSpanContext(routingContext);

Development

./mvnw clean install

Release

Follow instructions in RELEASE

About

OpenTracing instrumentation for Vert.x web package

Topics

Resources

Stars

21 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL