-
Notifications
You must be signed in to change notification settings - Fork 782
-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trace context not available with WebFlux #1143
Comments
Added sample project to reproduce the issue: https://github.com/jumal/sleuth-webflux-no-trace-context-issue |
Hi there, I've found a similar issue when used in a ReactiveAuthenticationManager with ExtraFieldPropagation.set on a client the context is null and on the server side, ExtraFieldPropagation.get returns null. ReactiveAuthenticationManager.authenticate calls server and tries to set some fields that should be logged/used on the server side |
Not exactly the same, but seems to be similar: |
Absolutely. I had a chat with @bsideup and he mentioned that there's a bug in Reactor. |
@marcingrzejszczak just to clarify: |
Ah thanks for the clarification @bsideup. I must have misunderstood you. |
Bug report
The trace context is not always available with WebFlux.
Trying to access propagated extra fields fails due to the unavailability of the trace context in Webflux.
The following code, that used to work with Spring Cloud Finchley and Greenwich M1, does not work anymore with Spring Cloud Greenwich M2 and M3:
ExtraFieldPropagation.get("X-Field2") returns null because the trace context is not available.
The text was updated successfully, but these errors were encountered: