Awesome Open Source
Awesome Open Source

Build Status Released Version

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

Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (412,491
Web (37,759
Tracing (3,613
Instrumentation (1,832
Span (1,765
Vertx (1,043
Opentracing (713
Event Loop (697
Vertx Web (63