class OpenTelemetry::Span
- OpenTelemetry::Span
- 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
Defined in:
span.crspan/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 = "", &)
-
#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))
- #client!
- #consumer!
-
#context : SpanContext
This is probably a property
- #context=(context : SpanContext)
- #end_time_unix_nano
-
#events : Array(Event)
This is probably a property
- #events=(events : Array(Event))
-
#finish : Time::Span | Nil
This is probably a property
- #finish=(finish : Time::Span | Nil)
- #get_attribute(key)
- #id
- #internal!
-
#is_recording : Bool
ameba:disable Naming/QueryBoolMethods
-
#is_recording=(is_recording : Bool)
ameba:disable Naming/QueryBoolMethods
-
#kind : Kind
This is probably a property
- #kind=(kind : Kind)
-
#name : String
This is probably a property
- #name=(name : String)
-
#parent : Span | Nil
This is probably a property
- #parent=(parent : Span | Nil)
- #pb_span_kind
- #pb_span_status
- #producer!
- #recording? : Bool
- #server!
- #set_attribute(key, value)
- #span_id
-
#start : Time::Span
This is probably a property
- #start=(start : Time::Span)
- #start_time_unix_nano
-
#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 | Nil
This is probably a property
- #wall_finish=(wall_finish : Time | Nil)
-
#wall_start : Time
This is probably a property
- #wall_start=(wall_start : Time)
Instance methods inherited from module OpenTelemetry::Sendable
size
size,
to_json
to_json,
to_protobuf
to_protobuf
Instance methods inherited from module OpenTelemetry::Sendable
size
size,
to_json
to_json,
to_protobuf
to_protobuf
Constructor Detail
Class Method Detail
Instance Method Detail
This is probably a property
This is probably a property
This is probably a property
This is probably a property
This is probably a property
This is probably a property
This is probably a property
This is probably a property
This is probably a property
This is probably a property
This is probably a property
This is probably a property