Tracing::SpanRef
A reference to span data with mutable extensions access.
Ported from upstream tracing_subscriber::registry::SpanRef.
Constructors
new(name : String, metadata : Tracing::Core::Metadata, parent_id : Tracing::Core::Span::Id | Nil, registry : Tracing::Registry, span_id : Tracing::Core::Span::Id)
SourceInstance methods
metadata
Sourcename
Sourceparent_id
Sourcescope
Returns an iterator over this span and its ancestors, ordered leaf to
root (this span first, then its parent, and so on). Mirrors upstream
SpanRef::scope; call #from_root on the result to reverse the order.