-
Notifications
You must be signed in to change notification settings - Fork 454
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
Missing and improperly nested span submission with Jaeger exporter #888
Comments
It's not only related to the Jaeger exporter, but also to the OTLP (via GRPC) one. |
cc @jtescher as you have more experience in tracing-opentelemetry. I checked the example and can reproduce the issue with the stdout exporter. I suspect we didn't have the right context for the span created by HTTP client but still need to dig more to see what could be the issue |
@TommyCpp I did some digging on this problem and I think these issues are tied together to improper otel context propagation in
Ultimately the solution likely lies in |
According to open-telemetry/opentelemetry-rust#888 (comment), this works around the current the cases where the root span is missing from the traces. Signed-off-by: Sascha Grunert <[email protected]>
According to open-telemetry/opentelemetry-rust#888 (comment), this works around the issue where the root span is missing from the traces. Signed-off-by: Sascha Grunert <[email protected]>
According to open-telemetry/opentelemetry-rust#888 (comment), this works around the issue where the root span is missing from the traces. Signed-off-by: Sascha Grunert <[email protected]>
@mkatychev I implemented something like this in conmon-rs (containers/conmon-rs#807), but the parent spans still seems missing from time to time. |
@saschagrunert hope you made some progress. I haven't gotten around to dealing with the issue. Hopefully this stalled PR might provide some context: |
Hello all, can you provide a status update for this issue? Currently, the tracing integration is effectively broken from my understanding. I am using the opentelemetry-zipkin exporter, so this issue is not only occurring with the Jaeger exporter. |
@AlexandreCassagne Unfortunately no. The tokio-tracing and otel integration requires some re-think/re-designs before they can fully interop! (#1533 (comment)) If you use OTel Tracing API throughout, and then something is broken, it is something we can fix in this repo. But the reality is - a lot of scenarios are already instrumented with tokio-tracing, and then interoping with OTel don't work nicely. also related is #1378 |
@cijothomas That's disappointing, I integrated our tokio-tracing with opentelemetry specifically for exports to Jaeger/Zipkin. I hope that this will eventually be implemented better as distributed tracing is a very useful tool for our team. Does this mean for those who wish to use opentelemetry, that we should integrate our tracing directly with it? or is there a middle way, such as a macro that can be used to add parent span contexts, etc? Can the OTel tracing api be used in parallel to provide links between spans? |
As outlined on Matrix, I’ve got a short-lived (periodically executed) application that uses reqwest, tracing-opentelemetry, and opentelemetry-jaeger. I noticed it frequently drops the main span when it exits, leaving the other spans scattered and flattened. I built a test repository that reproduces and explains the issue.
The text was updated successfully, but these errors were encountered: