abstract class OpenTelemetry::API::AbstractSpan
- OpenTelemetry::API::AbstractSpan
- Reference
- Object
Overview
A Span
represents a single measured timespan, and all data associated
with that measurement. A Span
may nest other Span
instances.
Included Modules
Direct Known Subclasses
Defined in:
api/abstract_span.crapi/span/abstract_kind.cr
Constant Summary
-
MATCH =
/(?<span_id>[A-Fa-f0-9]{16})/
Constructors
Class Method Summary
Instance Method Summary
- #[](key)
- #[]=(key, value)
- #add_event(name, attributes : Hash(String, AnyAttribute) = {} of String => AnyAttribute)
- #add_event(name = "", &blk : Event -> )
-
#attributes : Hash(String, AnyAttribute)
This is probably a property
- #attributes=(attributes : Hash(String, AnyAttribute))
- #can_export?
-
#children : Array(Span)
This is probably a property
- #children=(children : Array(Span))
-
#context : SpanContext
This is probably a property
- #context=(context : SpanContext)
-
#events : Array(Event)
This is probably a property
- #events=(events : Array(Event))
-
#finish : Time::Span?
This is probably a property
- #finish=(finish : Time::Span?)
- #get_attribute(key)
- #id
-
#is_recording : Bool
This is probably a property
- #is_recording=(is_recording : Bool)
-
#kind : Kind
This is probably a property
- #kind=(kind : Kind)
-
#name : String
This is probably a property
- #name=(name : String)
-
#parent : Span?
This is probably a property
- #parent=(parent : Span?)
- #recording?
- #set_attribute(key, value)
- #span_id
-
#start : Time::Span
This is probably a property
- #start=(start : Time::Span)
-
#status : Status
This is probably a property
- #status=(status : Status)
- #to_json(json : JSON::Builder)
- #to_json
-
#to_protobuf
Return the Protobuf object for the Span.
-
#wall_finish : Time?
This is probably a property
- #wall_finish=(wall_finish : Time?)
-
#wall_start : Time
This is probably a property
- #wall_start=(wall_start : Time)
Instance methods inherited from module OpenTelemetry::Sendable
size
size,
to_json(json : JSON::Builder)to_json to_json, to_protobuf to_protobuf
Constructor Detail
Class Method Detail
Instance Method Detail
abstract
def add_event(name, attributes : Hash(String, AnyAttribute) = {} of String => AnyAttribute)
#