module
OpenTelemetry::Trace
Overview
Span creation, identity, and interaction with the current context. Concurrency: the current span follows the owning fiber's context.
Defined in:
api/trace.crapi/trace/link.cr
api/trace/non_recording_span.cr
api/trace/noop.cr
api/trace/proxy.cr
api/trace/span.cr
api/trace/span_context.cr
api/trace/span_id.cr
api/trace/span_kind.cr
api/trace/status.cr
api/trace/trace_flags.cr
api/trace/trace_id.cr
api/trace/trace_state.cr
api/trace/tracer.cr
api/trace/tracer_provider.cr
Class Method Summary
- .current_span : Span
- .non_recording_span(span_context : SpanContext) : Span
-
.span(context : Context) : Span
Looks up the span carried by context.
-
.with_span(span : Span, context : Context = Context.current) : Context
Returns a context that carries span.
-
.with_span(span : Span, & : Span -> U) : U forall U
Makes span current for the block and leaves its lifetime to the caller.
Class Method Detail
Returns a context that carries span.
Makes span current for the block and leaves its lifetime to the caller.