Module: OpenTelemetry::Propagator::XRay
- Extended by:
- XRay
- Included in:
- XRay
- Defined in:
- lib/opentelemetry/propagator/xray/text_map_propagator.rb,
lib/opentelemetry/propagator/xray/version.rb,
lib/opentelemetry/propagator/xray/id_generator.rb,
lib/opentelemetry/propagator/xray.rb
Overview
Namespace for OpenTelemetry XRay propagation
Defined Under Namespace
Modules: IDGenerator Classes: TextMapPropagator
Constant Summary collapse
- VERSION =
'0.22.2'
Instance Method Summary collapse
-
#context_with_debug(context) ⇒ Object
private
Returns a new context with the xray debug flag enabled.
-
#debug?(context) ⇒ Boolean
private
Read the XRay debug flag from the provided context.
-
#text_map_propagator ⇒ Object
Returns a text map propagator that propagates context in the XRay format.
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 xray debug flag enabled
29 30 31 |
# File 'lib/opentelemetry/propagator/xray.rb', line 29 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 XRay debug flag from the provided context
35 36 37 |
# File 'lib/opentelemetry/propagator/xray.rb', line 35 def debug?(context) !context.value(DEBUG_CONTEXT_KEY).nil? end |
#text_map_propagator ⇒ Object
Returns a text map propagator that propagates context in the XRay format.
41 42 43 |
# File 'lib/opentelemetry/propagator/xray.rb', line 41 def text_map_propagator TEXT_MAP_PROPAGATOR end |