Class: Jaeger::Injectors::JaegerTextMapCodec

Inherits:
Object
  • Object
show all
Defined in:
lib/jaeger/injectors.rb

Class Method Summary collapse

Class Method Details

.inject(span_context, carrier) ⇒ Object



15
16
17
18
19
20
# File 'lib/jaeger/injectors.rb', line 15

def self.inject(span_context, carrier)
  carrier['uber-trace-id'] = Injectors.context_as_jaeger_string(span_context)
  span_context.baggage.each do |key, value|
    carrier["uberctx-#{key}"] = value
  end
end