Module: OpenTelemetry::Propagator::Jaeger

Extended by:
Jaeger
Included in:
Jaeger
Defined in:
lib/opentelemetry/propagator/jaeger/text_map_propagator.rb,
lib/opentelemetry/propagator/jaeger/version.rb,
lib/opentelemetry/propagator/jaeger.rb

Overview

Namespace for OpenTelemetry Jaeger propagation

Defined Under Namespace

Classes: TextMapPropagator

Constant Summary collapse

VERSION =
'0.21.1'

Instance Method Summary collapse

Instance Method Details

#context_with_debug(context) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new context with the jaeger debug flag enabled



37
38
39
# File 'lib/opentelemetry/propagator/jaeger.rb', line 37

def context_with_debug(context)
  context.set_value(DEBUG_CONTEXT_KEY, true)
end

#debug?(context) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Read the Jaeger debug flag from the provided context

Returns:

  • (Boolean)


43
44
45
# File 'lib/opentelemetry/propagator/jaeger.rb', line 43

def debug?(context)
  !context.value(DEBUG_CONTEXT_KEY).nil?
end

#text_map_propagatorObject

Returns a text map propagator that propagates context in the Jaeger format.



31
32
33
# File 'lib/opentelemetry/propagator/jaeger.rb', line 31

def text_map_propagator
  TEXT_MAP_PROPAGATOR
end