Skip to main content

get_trace_id

Function get_trace_id 

Source
fn get_trace_id(
    pairs: &[(Value, Value)],
) -> Result<Option<[u8; 16]>, MoqTraceError>
Expand description

Read a trace ID, refusing any length but the one the format fixes.

A wrong-length value is malformed rather than something to pad or truncate: the identifier exists so that two implementations independently derive byte-identical values for one subscription chain, and a reader that quietly reshapes it breaks exactly the property it is there for.