Improve the reactor netty instrumentation; fixes gh-1899

This commit is contained in:
Marcin Grzejszczak
2021-04-02 09:32:19 +02:00
parent 8321b23658
commit dc71088ff0

View File

@@ -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();