OpenTelemetry::API::AbstractSpan
Inherits OpenTelemetry::Sendable / Reference / Object
A Span represents a single measured timespan, and all data associated
with that measurement. A Span may nest other Span instances.
Constants
MATCH = /(?<span_id>[A-Fa-f0-9]{16})/
Constructors
new(name = "")
SourceClass methods
build(name = "", &)
Sourcevalidate_id(id : Slice(UInt8))
Sourcevalidate_id(id : Slice)
SourceInstance methods
[](key)
Source[]=(key, value)
Sourceadd_event(name, attributes : Hash(String, AnyAttribute) = {} of String => AnyAttribute)
Sourceadd_event(name = "", &blk : Event -> )
Sourceattributes=(attributes : Hash(String, AnyAttribute))
Sourcecan_export?
Sourcechildren=(children : Array(Span))
Sourcecontext=(context : SpanContext)
Sourceevents=(events : Array(Event))
Sourcefinish=(finish : Time::Span | Nil)
Sourceget_attribute(key)
Sourceid
Sourceis_recording=(is_recording : Bool)
Sourcekind=(kind : Kind)
Sourcename=(name : String)
Sourceparent=(parent : Span | Nil)
Sourcerecording?
Sourceset_attribute(key, value)
Sourcespan_id
Sourcestart=(start : Time::Span)
Sourcestatus=(status : Status)
Sourceto_json(json : JSON::Builder)
Sourceto_json
Sourcewall_finish=(wall_finish : Time | Nil)
Sourcewall_start=(wall_start : Time)
Source