lib/opentelemetry/context/propagation/rack_env_getter.rb in opentelemetry-api-1.0.2 vs lib/opentelemetry/context/propagation/rack_env_getter.rb in opentelemetry-api-1.1.0

- old
+ new

@@ -30,18 +30,18 @@ end private def to_rack_key(key) - ret = 'HTTP_' + key + ret = 'HTTP_' + key # rubocop:disable Style/StringConcatenation ret.tr!('-', '_') ret.upcase! ret end def from_rack_key(key) start = key.start_with?('HTTP_') ? 5 : 0 - ret = key[start..-1] + ret = key[start..] ret.tr!('_', '-') ret.downcase! ret end end