lib/opentelemetry/baggage/propagation.rb in opentelemetry-api-0.13.0 vs lib/opentelemetry/baggage/propagation.rb in opentelemetry-api-0.14.0
- old
+ new
@@ -13,21 +13,15 @@
# The Baggage::Propagation module contains injectors and
# extractors for sending and receiving baggage over the wire
module Propagation
extend self
+ BAGGAGE_KEY = 'baggage'
TEXT_MAP_EXTRACTOR = TextMapExtractor.new
TEXT_MAP_INJECTOR = TextMapInjector.new
- RACK_EXTRACTOR = TextMapExtractor.new(
- baggage_key: 'HTTP_BAGGAGE'
- )
- RACK_INJECTOR = TextMapInjector.new(
- baggage_key: 'HTTP_BAGGAGE'
- )
- private_constant :TEXT_MAP_INJECTOR, :TEXT_MAP_EXTRACTOR, :RACK_INJECTOR,
- :RACK_EXTRACTOR
+ private_constant :BAGGAGE_KEY, :TEXT_MAP_INJECTOR, :TEXT_MAP_EXTRACTOR
# Returns an extractor that extracts context using the W3C Baggage
# format
def text_map_injector
TEXT_MAP_INJECTOR
@@ -35,23 +29,9 @@
# Returns an injector that injects context using the W3C Baggage
# format
def text_map_extractor
TEXT_MAP_EXTRACTOR
- end
-
- # Returns an extractor that extracts context using the W3C Baggage
- # format with Rack normalized keys (upcased and prefixed with
- # HTTP_)
- def rack_injector
- RACK_INJECTOR
- end
-
- # Returns an injector that injects context using the W3C Baggage
- # format with Rack normalized keys (upcased and prefixed with
- # HTTP_)
- def rack_extractor
- RACK_EXTRACTOR
end
end
end
end