lib/opentelemetry/propagator/b3/single.rb in opentelemetry-propagator-b3-0.13.0 vs lib/opentelemetry/propagator/b3/single.rb in opentelemetry-propagator-b3-0.14.0

- old
+ new

@@ -20,21 +20,15 @@ module B3 # Namespace for OpenTelemetry b3 single header encoding module Single extend self + B3_CONTEXT_KEY = 'b3' TEXT_MAP_EXTRACTOR = TextMapExtractor.new TEXT_MAP_INJECTOR = TextMapInjector.new - RACK_EXTRACTOR = TextMapExtractor.new( - b3_key: 'HTTP_B3' - ) - RACK_INJECTOR = TextMapInjector.new( - b3_key: 'HTTP_B3' - ) - private_constant :TEXT_MAP_INJECTOR, :TEXT_MAP_EXTRACTOR, :RACK_INJECTOR, - :RACK_EXTRACTOR + private_constant :B3_CONTEXT_KEY, :TEXT_MAP_INJECTOR, :TEXT_MAP_EXTRACTOR # Returns an extractor that extracts context in the B3 single header # format def text_map_injector TEXT_MAP_INJECTOR @@ -42,23 +36,9 @@ # Returns an injector that injects context in the B3 single header # format def text_map_extractor TEXT_MAP_EXTRACTOR - end - - # Returns an extractor that extracts context in the B3 single header - # format with Rack normalized keys (upcased and prefixed with - # HTTP_) - def rack_injector - RACK_INJECTOR - end - - # Returns an injector that injects context in the B3 single header - # format with Rack normalized keys (upcased and prefixed with - # HTTP_) - def rack_extractor - RACK_EXTRACTOR end end end end end