Skip to main content

Module span_buffer_layer

Module span_buffer_layer 

Source
Expand description

tracing::Layer that captures every span into a SpanBuffer.

Trace ids are synthesized: tracing does not have native OTEL ids, so the layer assigns a fresh 32-char lowercase-hex trace_id per root span and propagates it to children via the span’s local extensions_mut() slot. parent_span_id is taken from the parent TraceCtx so the buffer’s view matches Python’s exporter byte-for-byte.

Structs§

SpanBufferLayer
tracing layer that captures every span into a SpanBuffer.