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 innermost span currently being processed on this thread (the deepest active Span, not necessarily the request root). Returns None when no span is active.

Use this to propagate trace context into outbound calls made from within a handler or a child span.