decode_binary

Function decode_binary 

Source
pub fn decode_binary(buf: &[u8; 32]) -> Option<TraceContext>
Expand description

Decode a trace context from a 32-byte buffer read from an RPC header.

Returns None if the buffer is all zeros (no trace context was sent, backward-compatible with old clients).