Skip to main content

Module trace

Module trace 

Source
Expand description

W3C-compatible 128-bit trace identifiers and 64-bit span identifiers.

TraceId is a 16-byte value matching the W3C traceparent wire format: 00-<32 lowercase hex>-<16 lowercase hex>-<2 hex flags>.

Both types are copy-cheap value types safe to pass by value anywhere.

Structsยง

SpanId
A 64-bit span identifier (W3C traceparent parent-id field).
SpanIdParseError
Parse error for SpanId::from_str.
TraceId
A 128-bit distributed trace identifier (W3C traceparent compatible).
TraceIdParseError
Parse error for TraceId::from_str.