class

Tracing::Scope

Inherits Iterator < Enumerable < Reference < Object

An iterator over a span and its ancestors, ordered leaf to root.

Ported from upstream tracing_subscriber::registry::Scope.

Constructors

new(registry : Registry, next_id : Core::Span::Id | Nil)
Source

Instance methods

from_root

Flips the order to root-to-leaf. Mirrors upstream Scope::from_root.

Source
next

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.

Source