OpenTracing instrumentation for Vert.x Web project. This repository currently contains handler which traces server requests.
Router router = Router.router(vertx);
TracingHandler handler = new TracingHandler(tracer);
router.route()
.order(-1).handler(handler)
.failureHandler(handler);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);./mvnw clean installFollow instructions in RELEASE