class Datadog::Contrib::Dalli::Patcher::DeprecatedPin
Implementation of deprecated Pin
, which raises warnings when accessed. To be removed when support for Datadog::Pin
with Dalli
is removed.
Constants
- DEPRECATION_WARNING
Public Instance Methods
log_deprecation_warning(method_name)
click to toggle source
# File lib/ddtrace/contrib/dalli/patcher.rb, line 54 def log_deprecation_warning(method_name) do_once(method_name) do Datadog.logger.warn("#{method_name}:#{DEPRECATION_WARNING}") end end
service_name=(service_name)
click to toggle source
# File lib/ddtrace/contrib/dalli/patcher.rb, line 50 def service_name=(service_name) Datadog.configuration[:dalli][:service_name] = service_name end