Skip to main content

current_traceparent

Function current_traceparent 

Source
pub fn current_traceparent() -> Option<String>
Expand description

Return the W3C traceparent value for the span currently being processed on this thread. Returns None when no OtelLayer span is active.

Used by crate::proxy::ReverseProxy to propagate trace context to upstream services.