class OpenTelemetry::API::Span
- OpenTelemetry::API::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:
api/span.crapi/span/kind.cr
Constant Summary
-
MATCH =
/(?<span_id>[A-Fa-f0-9]{16})/
Constructors
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))
- #client!
- #consumer!
-
#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
- #internal!
-
#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?)
- #producer!
- #recording?
- #server!
- #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
Instance methods inherited from class OpenTelemetry::API::AbstractSpan
[](key)
[],
[]=(key, value)
[]=,
add_event(name, attributes : Hash(String, AnyAttribute) = {} of String => AnyAttribute)add_event(name = "", &blk : Event -> ) add_event, attributes : Hash(String, AnyAttribute) attributes, attributes=(attributes : Hash(String, AnyAttribute)) attributes=, can_export? can_export?, children : Array(Span) children, children=(children : Array(Span)) children=, context : SpanContext context, context=(context : SpanContext) context=, events : Array(Event) events, events=(events : Array(Event)) events=, finish : Time::Span? finish, finish=(finish : Time::Span?) finish=, get_attribute(key) get_attribute, id id, is_recording : Bool is_recording, is_recording=(is_recording : Bool) is_recording=, kind : Kind kind, kind=(kind : Kind) kind=, name : String name, name=(name : String) name=, parent : Span? parent, parent=(parent : Span?) parent=, recording? recording?, set_attribute(key, value) set_attribute, span_id span_id, start : Time::Span start, start=(start : Time::Span) start=, status : Status status, status=(status : Status) status=, to_json(json : JSON::Builder)
to_json to_json, to_protobuf to_protobuf, wall_finish : Time? wall_finish, wall_finish=(wall_finish : Time?) wall_finish=, wall_start : Time wall_start, wall_start=(wall_start : Time) wall_start=
Constructor methods inherited from class OpenTelemetry::API::AbstractSpan
new(name = "")
new
Class methods inherited from class OpenTelemetry::API::AbstractSpan
build(name = "", &)
build,
validate_id(id : Slice(UInt8))validate_id(id : Slice) validate_id
Instance methods inherited from module OpenTelemetry::Sendable
size
size,
to_json(json : JSON::Builder)to_json to_json, to_protobuf to_protobuf
Constructor Detail
Instance Method Detail
def attributes : Hash(String, AnyAttribute)
#
Description copied from class OpenTelemetry::API::AbstractSpan
This is probably a property
def context : SpanContext
#
Description copied from class OpenTelemetry::API::AbstractSpan
This is probably a property
def finish : Time::Span?
#
Description copied from class OpenTelemetry::API::AbstractSpan
This is probably a property
def is_recording : Bool
#
Description copied from class OpenTelemetry::API::AbstractSpan
This is probably a property
def name : String
#
Description copied from class OpenTelemetry::API::AbstractSpan
This is probably a property
def start : Time::Span
#
Description copied from class OpenTelemetry::API::AbstractSpan
This is probably a property
def wall_finish : Time?
#
Description copied from class OpenTelemetry::API::AbstractSpan
This is probably a property
def wall_start : Time
#
Description copied from class OpenTelemetry::API::AbstractSpan
This is probably a property