OpenTelemetry::API::Span
Inherits OpenTelemetry::Sendable / OpenTelemetry::API::AbstractSpan / 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 : String = "")
SourceInstance methods
[](key)
Source[]=(key, value)
Sourceadd_event(name, attributes : Hash(String, AnyAttribute) = {} of String => AnyAttribute)
Sourceadd_event(name = "", & : Event -> )
Sourceattributes=(attributes : Hash(String, AnyAttribute))
Sourcecan_export?
Sourcechildren=(children : Array(Span))
Sourceclient!
Sourceconsumer!
Sourcecontext=(context : SpanContext)
Sourceevents=(events : Array(Event))
Sourcefinish=(finish : Time::Span | Nil)
Sourceget_attribute(key)
Sourceid
Sourceinternal!
Sourcekind=(kind : Kind)
Sourcename=(name : String)
Sourceparent=(parent : Span | Nil)
Sourceproducer!
Sourcerecording?
Sourceserver!
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