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

This commit is contained in:
Munir Abdinur 2020-08-03 15:04:27 -04:00 committed by GitHub
parent b9748e06b7
commit 6a61bc824d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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