Apache HttpClient instrumentation.
GlobalTracer.register(tracer);
HttpClient httpClient = new TracingHttpClientBuilder()
.build();
//custom configuration
HttpClient httpClient = new TracingHttpClientBuilder(
redirectStrategy,
redirectHandlingDisabled,
GlobalTracer.get(),
spanDecorators)
.build();If parent span context is not passed created client spans will be in a new trace.
spanManager.activate(parentSpan); // called in the same thread as client.execute()
client.execute(new HttpGet("url"));BasicHttpContext basicHttpContext = new BasicHttpContext();
basicHttpContext.setAttribute(Constants.PARENT_CONTEXT, parentSpan.context());
client.execute(new HttpGet("url"), basicHttpContext);./mvnw clean installFollow instructions in RELEASE