@DataProvider(value = { "true", "false" }) @Test public void propagateTracingHeaders_uses_B3_spec_for_sampleable_header_value( boolean sampleable ) { Span span = Span.newBuilder("foo", Span.SpanPurpose.CLIENT) .withSampleable(sampleable) .build(); WingtipsApacheHttpClientUtil.propagateTracingHeaders(requestMock, span); verify(requestMock) .setHeader(TRACE_SAMPLED, convertSampleableBooleanToExpectedB3Value(span.isSampleable())); }
public static void propagateTracingHeaders(HttpRequest request, Span span) { HttpRequestForPropagation requestForPropagation = (request == null) ? null : new HttpRequestForPropagation(request); HttpRequestTracingUtils.propagateTracingHeaders(requestForPropagation, span); }
WingtipsApacheHttpClientUtil { public static void propagateTracingHeaders(HttpRequest request, Span span) { HttpRequestForPropagation requestForPropagation = (request == null) ? null : new HttpRequestForPropagation(request); HttpRequestTracingUtils.propagateTracingHeaders(requestForPropagation, span); } }
WingtipsApacheHttpClientUtil { public static void propagateTracingHeaders(HttpRequest request, Span span) { HttpRequestForPropagation requestForPropagation = (request == null) ? null : new HttpRequestForPropagation(request); HttpRequestTracingUtils.propagateTracingHeaders(requestForPropagation, span); } @SuppressWarnings("WeakerAccess") protected  WingtipsApacheHttpClientUtil(); }
WingtipsApacheHttpClientUtil { public static void propagateTracingHeaders(HttpRequest request, Span span) { HttpRequestForPropagation requestForPropagation = (request == null) ? null : new HttpRequestForPropagation(request); HttpRequestTracingUtils.propagateTracingHeaders(requestForPropagation, span); } @SuppressWarnings("WeakerAccess") protected  WingtipsApacheHttpClientUtil(); static void propagateTracingHeaders(HttpRequest request, Span span); static String getFallbackSubspanSpanName(HttpRequest request); }
WingtipsApacheHttpClientUtil { public static void propagateTracingHeaders(HttpRequest request, Span span) { HttpRequestForPropagation requestForPropagation = (request == null) ? null : new HttpRequestForPropagation(request); HttpRequestTracingUtils.propagateTracingHeaders(requestForPropagation, span); } @SuppressWarnings("WeakerAccess") protected  WingtipsApacheHttpClientUtil(); static void propagateTracingHeaders(HttpRequest request, Span span); static String getFallbackSubspanSpanName(HttpRequest request);  }