Skip to main content

extract_otel_context

Function extract_otel_context 

Source
pub(crate) fn extract_otel_context(message: &Message) -> Context
Expand description

Extracts the OpenTelemetry context carried in a NATS message’s headers.

Uses the globally configured text-map propagator. Falls back to Context::current() when the message carries no headers.