Module: Jaeger::Extractors
- Defined in:
- lib/jaeger/extractors.rb
Defined Under Namespace
Classes: B3CodecCommon, B3RackCodec, B3TextMapCodec, JaegerBinaryCodec, JaegerRackCodec, JaegerTextMapCodec, SerializedJaegerTrace, TraceContextRackCodec
Constant Summary collapse
- DEFAULT_EXTRACTORS =
{ OpenTracing::FORMAT_TEXT_MAP => JaegerTextMapCodec, OpenTracing::FORMAT_BINARY => JaegerBinaryCodec, OpenTracing::FORMAT_RACK => JaegerRackCodec }.freeze
Class Method Summary collapse
Class Method Details
.prepare(extractors) ⇒ Object
164 165 166 167 168 169 170 171 |
# File 'lib/jaeger/extractors.rb', line 164 def self.prepare(extractors) DEFAULT_EXTRACTORS.reduce(extractors) do |acc, (format, default)| provided_extractors = Array(extractors[format]) provided_extractors += [default] if provided_extractors.empty? acc.merge(format => provided_extractors) end end |