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
Tracing not propagated across @Async #138
Comments
@n0tl3ss please take a look |
Hi @dansiviter, I tried to recreate test example without success. Could you please provide me |
@n0tl3ss I can't share the code, so will have to create an example when I find some time. |
After a lot of debugging, I believe the issue can be fixed by Can this behaviour be documented please as it is confusing. |
If you provide an example maybe we can take it forward. Using |
@graemerocher Every time you use |
FYI, I've noticed that flag doesn't work for OpenTelemetry as there is no OTel equivalent for |
We can add |
Expected Behavior
When using
@Aync
methods theTraceContext
is automatically propagated to the new thread linking in with instigating trace. Similar toio.opentelemetry.context.Context#wrap(...)
.Actual Behaviour
When
@Async
is used instigatingTraceContext
is ignored leaving holes in the resulting trace. The issue goes away if@Async
is removed, but that defeats the point.Steps To Reproduce
@Async
,TraceContext
(i.e. HTTP request withB3
header).Environment Information
Example Application
No response
Version
3.5.3
The text was updated successfully, but these errors were encountered: