Bug fix for tracer reference in try block
MODIFY
instrumentation-core/spring/spring-webflux-5.0/src/main/java/io/opentelemetry/instrumentation/springwebflux/client/WebClientTracingFilter.java
instrumentation-core/spring/spring-webflux-5.0/src/main/java/io/opentelemetry/instrumentation/springwebflux/client/WebClientTracingFilter.java
@@ -52,7 +52,7 @@ public class WebClientTracingFilter implements ExchangeFilterFunction {
Span span = DECORATE.getOrCreateSpan(request, tracer);
DECORATE.afterStart(span);
- try (Scope scope = TRACER.withSpan(span)) {
+ try (Scope scope = tracer.withSpan(span)) {
ClientRequest mutatedRequest =
ClientRequest.from(request)
.headers(httpHeaders -> DECORATE.inject(Context.current(), httpHeaders))

Bug fix for tracer reference in try block (#877)