module OpenTelemetry::Propagator::XRay

Namespace for OpenTelemetry XRay propagation

Namespace for OpenTelemetry XRay propagation

Constants

DEBUG_CONTEXT_KEY
TEXT_MAP_PROPAGATOR
VERSION

Public Instance Methods

context_with_debug(context) click to toggle source

@api private Returns a new context with the xray debug flag enabled

# File lib/opentelemetry/propagator/xray.rb, line 29
def context_with_debug(context)
  context.set_value(DEBUG_CONTEXT_KEY, true)
end
debug?(context) click to toggle source

@api private Read the XRay debug flag from the provided context

# File lib/opentelemetry/propagator/xray.rb, line 35
def debug?(context)
  !context.value(DEBUG_CONTEXT_KEY).nil?
end
text_map_propagator() click to toggle source

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

# File lib/opentelemetry/propagator/xray.rb, line 41
def text_map_propagator
  TEXT_MAP_PROPAGATOR
end