Improve the reactor netty instrumentation; fixes gh-1899
This commit is contained in:
@@ -71,7 +71,7 @@ public class HttpClientBeanPostProcessor implements BeanPostProcessor {
|
||||
// preparation of a redirect follow-up.
|
||||
TracingDoOnResponse doOnResponse = new TracingDoOnResponse(springContext);
|
||||
return ((HttpClient) bean).doOnResponseError(new TracingDoOnErrorResponse(springContext))
|
||||
.doOnRedirect(doOnResponse).doOnResponse(doOnResponse)
|
||||
.doOnRedirect(doOnResponse).doAfterResponseSuccess(doOnResponse)
|
||||
.doOnRequestError(new TracingDoOnErrorRequest(springContext))
|
||||
.doOnRequest(new TracingDoOnRequest(springContext)).mapConnect(new TracingMapConnect(() -> {
|
||||
CurrentTraceContext ref = currentContext.get();
|
||||
|
||||
Reference in New Issue
Block a user