-
Using open telemetry::trace::get_active_span, I get the parent span. But I don't see any way to create a child span off of it. |
Beta Was this translation helpful? Give feedback.
Answered by
lalitb
Feb 12, 2024
Replies: 1 comment 2 replies
-
@ramgdev - You can find the example as Also, the server part of tracing-http-propagator example demonstrate two ways to create child span:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ramgdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ramgdev - You can find the example as
rustdoc
here -opentelemetry-rust/opentelemetry/src/trace/tracer.rs
Line 21 in ff64e21
Also, the server part of tracing-http-propagator example demonstrate two ways to create child span:
Tracer::start_with_context()
Futures::with_context()