class
OpenTelemetry::Trace::ProxyTracer
Overview
Resolves a tracer for its scope against the current registration. Concurrency: safe for concurrent use. The cache is published atomically.
Defined in:
api/trace/proxy.crConstructors
Instance Method Summary
-
#do_start_span(name : String, parent : Context, kind : SpanKind, attributes : Attributes, links : Array(Link), start_time : Time | Nil) : Span
SPI: implementers override.
-
#enabled? : Bool
Indicates whether creating spans can result in recording.
Instance methods inherited from class OpenTelemetry::Trace::Tracer
do_start_span(name : String, parent : Context, kind : SpanKind, attributes : Attributes, links : Array(Link), start_time : Time | Nil) : Span
do_start_span,
enabled? : Bool
enabled?,
in_span(name : String, *, context : Context | Nil = nil, kind : SpanKind = SpanKind::Internal, attributes = nil, links : Enumerable(Link) | Nil = nil, start_time : Time | Nil = nil, record_exception : Bool = true, & : Span -> U) : U forall U
in_span,
start_span(name : String, *, context : Context | Nil = nil, kind : SpanKind = SpanKind::Internal, attributes = nil, links : Enumerable(Link) | Nil = nil, start_time : Time | Nil = nil) : Span
start_span
Constructor Detail
Instance Method Detail
def do_start_span(name : String, parent : Context, kind : SpanKind, attributes : Attributes, links : Array(Link), start_time : Time | Nil) : Span
#
Description copied from class OpenTelemetry::Trace::Tracer
SPI: implementers override. Applications call start_span or in_span.
def enabled? : Bool
#
Description copied from class OpenTelemetry::Trace::Tracer
Indicates whether creating spans can result in recording. Call this before each span creation to skip expensive work when tracing is disabled. The result can change between calls.