Skip to main content

parse_traceparent

Function parse_traceparent 

Source
pub fn parse_traceparent(
    value: &str,
    tracestate: Option<&str>,
    baggage: Option<&str>,
) -> Option<W3CTraceContext>
Expand description

Parses a W3C traceparent, returning None when invalid.

Version 00 must use the exact 55-character format. Higher versions are accepted when the mandatory prefix is valid; opaque extension data remains verbatim. Invalid identifiers are never replaced with generated values.