Module span

Source
Expand description

W3C Trace Context propagation for agentguard requests.

See https://www.w3.org/TR/trace-context/. A TraceContext can be parsed from the standard traceparent HTTP header and serialized back to one. Carried on crate::request::AgentRequest and threaded through every authorization decision’s audit record.

Structs§

SpanId
64-bit span identifier, hex-encoded to 16 chars.
TraceContext
W3C Trace Context, parsed from the traceparent header.
TraceId
128-bit trace identifier, hex-encoded to 32 chars when displayed.

Constants§

SPAN_ID_LEN
Length in bytes of a W3C parent-id / span-id (8 bytes = 16 hex chars).
TRACE_ID_LEN
Length in bytes of a W3C trace-id (16 bytes = 32 hex chars).