class

Tracing::Span

Inherits Reference < Object

A handle representing a span.

Constructors

child_of(parent_id : Core::Span::Id, meta : Metadata, values : Field::ValueSet = Field::ValueSet.new) : self
Source
current

Returns the currently entered span, or a disabled span.

Ported from vendor/tracing/tracing/src/span.rs:550

Source
new(meta : Metadata, values : Field::ValueSet = Field::ValueSet.new) : self

Creates a new span with the current subscriber and parent.

Source
new_root(meta : Metadata, values : Field::ValueSet = Field::ValueSet.new) : self
Source
none
Source

Instance methods

close
Source
disabled?
Source
enter
Source
entered
Source
exit_span
Source
finalize
Source
follows_from(from : Core::Span::Id) : Nil
Source
in_scope
Source
metadata
Source
or_current

Returns self if enabled, otherwise the current span.

Ported from vendor/tracing/tracing/src/span.rs:1027

Source
record
Source

Nested types