Class: Jaeger::Injectors::JaegerRackCodec

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

Class Method Summary collapse

Class Method Details

.inject(span_context, carrier) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/jaeger/injectors.rb', line 24

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