class

Tracing::Registry

Inherits Tracing::LookupSpan < Tracing::Core::Subscriber < Reference < Object

Looks up span data stored in a Registry.

Constructors

default
Source

Instance methods

clone_span(id : Core::Span::Id) : Core::Span::Id
Source
current_span
Source
current_span_id

Get the current span ID for the current fiber.

Source
current_span_stack

Get the full current span stack for the current fiber (innermost first).

Source
enabled(metadata : Metadata) : Bool
Source
enter(id : Core::Span::Id) : Nil
Source
event(event : Core::Event) : Nil
Source
exit(id : Core::Span::Id) : Nil
Source
init

Set this registry (with its layers) as the global default subscriber.

Source
max_level_hint
Source
new_span(attrs : Core::Span::Attributes) : Core::Span::Id
Source
record(id : Core::Span::Id, values : Core::Span::Record) : Nil
Source
record_follows_from(span : Core::Span::Id, follows : Core::Span::Id) : Nil
Source
register_callsite(metadata : Metadata) : Callsite::Interest
Source
span(id : Core::Span::Id) : SpanRef | Nil
Source
span_data(id : Core::Span::Id) : SpanData | Nil

Lookup span data by ID.

Source
try_close(id : Core::Span::Id) : Bool
Source
with(layer : Layer) : Layered(Registry)
Source
with(layer : Nil) : Layered(Registry)
Source

Nested types