opentelemetry_nats

Function attach_span_context

source
pub fn attach_span_context(msg: &Message)
Expand description

A convenience function that will extract headers from a message and set the parent span for the current tracing Span. If you want to do something more advanced, use the NatsHeaderExtractor type directly