extract_traceparent

Function extract_traceparent 

Source
pub fn extract_traceparent(
    headers: &[(String, Vec<u8>)],
) -> Option<TraceContext>
Expand description

Extract a trace context from a header list.

Looks for the "traceparent" header and parses it as a W3C traceparent string. Returns None if the header is not present or cannot be parsed.