HttpClientHandler extends HttpHandler { @Deprecated public Span nextSpan(Req request) { HttpClientRequest clientRequest; if (request instanceof HttpClientRequest) { clientRequest = (HttpClientRequest) request; } else { clientRequest = new FromRequestAdapter<>(adapter, request); } return tracer.nextSpan(httpSampler, clientRequest); } HttpClientHandler(HttpTracing httpTracing, @Deprecated HttpClientAdapter<Req, Resp> adapter); static HttpClientHandler<HttpClientRequest, HttpClientResponse> create(
    HttpTracing httpTracing); @Deprecated static HttpClientHandler<Req, Resp> create(HttpTracing httpTracing,
    HttpClientAdapter<Req, Resp> adapter); Span handleSend(HttpClientRequest request); Span handleSendWithParent(HttpClientRequest request, @Nullable TraceContext parent); Span handleSend(HttpClientRequest request, Span span); @Deprecated Span handleSend(Injector<Req> injector, Req request); @Deprecated Span handleSend(Injector<C> injector, C carrier, Req request); @Deprecated Span handleSend(Injector<Req> injector, Req request, Span span); @Deprecated Span handleSend(Injector<C> injector, C carrier, Req request, Span span); @Deprecated Span nextSpan(Req request); @Deprecated void handleReceive(@Nullable Resp response, @Nullable Throwable error, Span span); void handleReceive(HttpClientResponse response, Span span);  }
@Test public void deprecatedNextSpan_samplerSeesHttpClientRequest() { SamplerFunction<HttpRequest> clientSampler = mock(SamplerFunction.class); init(httpTracingBuilder(tracingBuilder()).clientSampler(clientSampler)); handler.nextSpan(request); verify(clientSampler).trySample(request); }