Tracing::Span
A handle representing a span.
Constructors
child_of(parent_id : Core::Span::Id, meta : Metadata, values : Field::ValueSet = Field::ValueSet.new) : self
Sourcecurrent
Returns the currently entered span, or a disabled span.
Ported from vendor/tracing/tracing/src/span.rs:550
new(meta : Metadata, values : Field::ValueSet = Field::ValueSet.new) : self
Creates a new span with the current subscriber and parent.
new_root(meta : Metadata, values : Field::ValueSet = Field::ValueSet.new) : self
Sourcenone
SourceInstance methods
close
Sourcedisabled?
Sourceenter
Sourceentered
Sourceexit_span
Sourcefinalize
Sourcefollows_from(from : Core::Span::Id) : Nil
Sourceid
Sourcein_scope
Sourcemetadata
Sourceor_current
Returns self if enabled, otherwise the current span.
Ported from vendor/tracing/tracing/src/span.rs:1027
record
Source