You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found that the old value of remote baggage is restored by OtelBaggageManager from io.opentelemetry.context.Context. I think the Context should be cleaned after request completed
Hello!
Using Spring Boot 3.1.4, webflux, micrometer:
Encountered interesting behavior that looks like bug:
Got simple endpoint:
and custom tracing baggage settings:
Call endpoint at the first time with headers:
See in logs:
all right!
After that call endpoint again but WITHOUT headers:
And see in logs:
customId=custom-value remains on MDC context for thread but it's wrong!
The quick analysis shows the problem is in publishing event ScopeRestoredEvent.
When I set logging level to TRACE for logging.level.io.micrometer.tracing.otel.bridge I found:
I confused what for the scope is restored and the baggage is put back to MDC Context. Looks like a bug.
May be anybody can help to solve this problem?
The text was updated successfully, but these errors were encountered: