wasmcloud_tracing::context

Function attach_span_context

source
pub fn attach_span_context(trace_context: &TraceContext)
Expand description

A convenience function that will extract from an incoming context and set the parent span for the current tracing Span. If you want to do something more advanced, use the TraceContextExtractor type directly

WARNING: To avoid performance issues, this function does not check if you have empty tracing headers. If you pass an empty Extractor to this function, you will orphan the current span hierarchy.