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
- OpenTelemetry::Sendable
Defined in:
lib/opentelemetry-sdk/src/span.crlib/opentelemetry-sdk/src/span/kind.cr
ext/open_telemetry/span_links.cr
Instance Method Summary
-
#add_link(context : SpanContext, attributes : Hash(String, AnyAttribute) = {} of String => AnyAttribute) : Nil
The pinned SDK protobuf supports links, but Span does not expose them yet.
- #add_link(context : SpanContext, attributes : Hash(String, _) = {} of String => String) : Nil
- #links : Array(Proto::Trace::V1::Span::Link)
- #to_json(json : JSON::Builder)
-
#to_protobuf
Return the Protobuf object for the Span.
Instance Method Detail
def add_link(context : SpanContext, attributes : Hash(String, AnyAttribute) = {} of String => AnyAttribute) : Nil
#
The pinned SDK protobuf supports links, but Span does not expose them yet. Keep the extension local so template send spans can export link metadata.