Module: OpenTelemetry::Propagator::B3
- Extended by:
- B3
- Included in:
- B3
- Defined in:
- lib/opentelemetry/propagator/b3/multi.rb,
lib/opentelemetry/propagator/b3/single.rb,
lib/opentelemetry/propagator/b3/version.rb,
lib/opentelemetry/propagator/b3/text_map_extractor.rb,
lib/opentelemetry/propagator/b3/multi/text_map_propagator.rb,
lib/opentelemetry/propagator/b3/single/text_map_propagator.rb,
lib/opentelemetry/propagator/b3.rb
Overview
Namespace for OpenTelemetry B3 propagation
Defined Under Namespace
Modules: Multi, Single, TextMapExtractor
Constant Summary collapse
- VERSION =
'0.21.0'
Instance Method Summary collapse
-
#context_with_debug(context) ⇒ Object
private
Returns a new context with the b3 debug flag enabled.
-
#debug?(context) ⇒ Boolean
private
Read the B3 debug flag from the provided context.
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 b3 debug flag enabled
25 26 27 |
# File 'lib/opentelemetry/propagator/b3.rb', line 25 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 B3 debug flag from the provided context
31 32 33 |
# File 'lib/opentelemetry/propagator/b3.rb', line 31 def debug?(context) context.value(DEBUG_CONTEXT_KEY) end |