Skip to main content

inject_trace_context

Function inject_trace_context 

Source
pub fn inject_trace_context(context: &Context, headers: &mut HeaderMap)
Expand description

Injects context into outbound headers using the global W3C propagator.

Use this for outbound HTTP requests. The response path uses the same helper to expose applicable trace headers to callers.