@Override public ClientHttpResponse intercept( HttpRequest request, byte[] body, ClientHttpRequestExecution execution ) throws IOException { // We need to wrap the request with HttpRequestWrapperWithModifiableHeaders so that tracing info can be // propagated on the headers. HttpRequestWrapperWithModifiableHeaders wrapperRequest = new HttpRequestWrapperWithModifiableHeaders(request); if (surroundCallsWithSubspan) { return createNewSpanAndExecuteRequest(wrapperRequest, body, execution); } return propagateTracingHeadersAndExecuteRequest(wrapperRequest, body, execution); }
@Override public ClientHttpResponse intercept( HttpRequest request, byte[] body, ClientHttpRequestExecution execution ) throws IOException { // We need to wrap the request with HttpRequestWrapperWithModifiableHeaders so that tracing info can be // propagated on the headers. HttpRequestWrapperWithModifiableHeaders wrapperRequest = new HttpRequestWrapperWithModifiableHeaders(request); if (surroundCallsWithSubspan) { return createNewSpanAndExecuteRequest(wrapperRequest, body, execution); } return propagateTracingHeadersAndExecuteRequest(wrapperRequest, body, execution); }
try { tagAndNamingStrategy.handleRequestTagging(spanAroundCall, wrapperRequest, tagAndNamingAdapter); response = propagateTracingHeadersAndExecuteRequest(wrapperRequest, body, execution);
try { tagAndNamingStrategy.handleRequestTagging(spanAroundCall, wrapperRequest, tagAndNamingAdapter); response = propagateTracingHeadersAndExecuteRequest(wrapperRequest, body, execution);