Available on crate feature
otel only.Expand description
OpenTelemetry context propagation helpers for async boundaries.
The SDK uses tokio::spawn in run(). Those spawned futures are wrapped
with FutureExt::with_context() so the caller’s OTel context is
re-attached on every poll, surviving task migration across tokio worker
threads. run_turn() executes directly in the caller task and therefore
does not need an extra spawn propagation hop.
Functions§
- capture_
context - Capture the current
OTelcontext for propagation into a spawned task. - current_
with_ span_ context - Capture the current
OTelcontext and replace the active span.