-
Notifications
You must be signed in to change notification settings - Fork 440
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
Broken trace example #1690
Comments
The problem here is that if the Span is active in the |
In order to bring the information from tracing to Opentelemetry. We need to extract the context from the Something like this should work use tracing_opentelemetry::OpenTelemetrySpanExt;
// ...
let mut span = tracer
.start_with_context("otel-tracing-span", &child.context()); The The results:
|
This issue is simple example to showcase broken traces when intermixing OTel Tracing API and Tokio-tracing API.
Cargo.toml
main.rs
The text was updated successfully, but these errors were encountered: