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.cr
api/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

Class Method Detail

def self.current_span : Span #

[View source]
def self.non_recording_span(span_context : SpanContext) : Span #

[View source]
def self.span(context : Context) : Span #

Looks up the span carried by context.


[View source]
def self.with_span(span : Span, context : Context = Context.current) : Context #

Returns a context that carries span.


[View source]
def self.with_span(span : Span, & : Span -> U) : U forall U #

Makes span current for the block and leaves its lifetime to the caller.


[View source]