lib/opentelemetry/context/propagation.rb in opentelemetry-api-1.0.0 vs lib/opentelemetry/context/propagation.rb in opentelemetry-api-1.0.1
- old
+ new
@@ -65,12 +65,16 @@
# hash-like carrier
def text_map_setter
TEXT_MAP_SETTER
end
+ # @deprecated Use the rack env getter found in the
+ # opentelemetry-common gem instead.
# Returns a {RackEnvGetter} instance suitable for reading values from a
# Rack environment.
def rack_env_getter
+ OpenTelemetry.logger.warn('OpenTelemetry::Context::Propagation.rack_env_getter has been deprecated \
+ use OpenTelemetry::Common::Propagation.rack_env_getter from the opentelemetry-common gem instead.')
RACK_ENV_GETTER
end
end
end
end