encode_binary

Function encode_binary 

Source
pub fn encode_binary(ctx: &TraceContext) -> [u8; 32]
Expand description

Encode a trace context into a 32-byte buffer suitable for embedding in an RPC shared-memory header.

Returns all zeros if the context is empty (backward-compatible: old servers ignore zero bytes in the trace context field).