Module: OpenTelemetry::Propagator::Jaeger
- Extended by:
- Jaeger
- Included in:
- Jaeger
- Defined in:
- lib/opentelemetry/propagator/jaeger/text_map_injector.rb,
 lib/opentelemetry/propagator/jaeger/version.rb,
 lib/opentelemetry/propagator/jaeger/text_map_extractor.rb,
 lib/opentelemetry/propagator/jaeger.rb
Overview
Namespace for OpenTelemetry Jaeger propagation
Defined Under Namespace
Classes: TextMapExtractor, TextMapInjector
Constant Summary collapse
- VERSION =
- '0.16.0'
Instance Method Summary collapse
- 
  
    
      #context_with_debug(context)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    Returns a new context with the jaeger debug flag enabled. 
- 
  
    
      #debug?(context)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    Read the Jaeger debug flag from the provided context. 
- 
  
    
      #text_map_extractor  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Returns an injector that injects context in the Jaeger single header format. 
- 
  
    
      #text_map_injector  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Returns an extractor that extracts context in the Jaeger single header 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 jaeger debug flag enabled
| 52 53 54 | # File 'lib/opentelemetry/propagator/jaeger.rb', line 52 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
| 58 59 60 | # File 'lib/opentelemetry/propagator/jaeger.rb', line 58 def debug?(context) !context.value(DEBUG_CONTEXT_KEY).nil? end | 
#text_map_extractor ⇒ Object
Returns an injector that injects context in the Jaeger single header format
| 46 47 48 | # File 'lib/opentelemetry/propagator/jaeger.rb', line 46 def text_map_extractor TEXT_MAP_EXTRACTOR end | 
#text_map_injector ⇒ Object
Returns an extractor that extracts context in the Jaeger single header format
| 40 41 42 | # File 'lib/opentelemetry/propagator/jaeger.rb', line 40 def text_map_injector TEXT_MAP_INJECTOR end |