class OpenTelemetry::Propagation::TraceContext

Overview

Propagates the W3C Trace Context Level 2 headers. Concurrency: stateless and safe for concurrent use.

Defined in:

api/propagation/trace_context.cr

Constant Summary

TRACEPARENT = "traceparent"
TRACESTATE = "tracestate"

Instance Method Summary

Instance methods inherited from class OpenTelemetry::Propagation::TextMapPropagator

extract(carrier, context : Context = Context.current, getter = DEFAULT_GETTER) : Context extract, fields : Array(String) fields, inject(carrier, context : Context = Context.current, setter = DEFAULT_SETTER) : Nil inject

Instance Method Detail

def extract(carrier, context : Context = Context.current, getter = DEFAULT_GETTER) : Context #
Description copied from class OpenTelemetry::Propagation::TextMapPropagator

Implementations report errors and return context on invalid input.


[View source]
def fields : Array(String) #

[View source]
def inject(carrier, context : Context = Context.current, setter = DEFAULT_SETTER) : Nil #

[View source]