Module: OpenTelemetry::Propagator::OTTrace

Extended by:
OTTrace
Included in:
OTTrace
Defined in:
lib/opentelemetry/propagator/ottrace/version.rb,
lib/opentelemetry/propagator/ottrace/text_map_injector.rb,
lib/opentelemetry/propagator/ottrace/text_map_extractor.rb,
lib/opentelemetry/propagator/ottrace.rb

Overview

Namespace for OpenTelemetry OTTrace propagation

Defined Under Namespace

Classes: TextMapExtractor, TextMapInjector

Constant Summary collapse

VERSION =
'0.16.0'
TRACE_ID_HEADER =
'ot-tracer-traceid'
SPAN_ID_HEADER =
'ot-tracer-spanid'
SAMPLED_HEADER =
'ot-tracer-sampled'
BAGGAGE_HEADER_PREFIX =
'ot-baggage-'
VALID_BAGGAGE_HEADER_NAME_CHARS =
/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/.freeze
INVALID_BAGGAGE_HEADER_VALUE_CHARS =
/[^\t\u0020-\u007E\u0080-\u00FF]/.freeze

Instance Method Summary collapse

Instance Method Details

#text_map_extractorObject

Returns an extractor that extracts context from OTTrace carrier



33
34
35
# File 'lib/opentelemetry/propagator/ottrace.rb', line 33

def text_map_extractor
  TextMapExtractor.new
end

#text_map_injectorObject

Returns an injector that injects context into a carrier



38
39
40
# File 'lib/opentelemetry/propagator/ottrace.rb', line 38

def text_map_injector
  TextMapInjector.new
end