class Datadog::Contrib::Faraday::Patcher::DeprecatedPin
Implementation of deprecated Pin
, which raises warnings when accessed. To be removed when support for Datadog::Pin
with Faraday
is removed.
Constants
- DEPRECATION_WARNING
Public Instance Methods
log_deprecation_warning(method_name)
click to toggle source
# File lib/ddtrace/contrib/faraday/patcher.rb, line 80 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/faraday/patcher.rb, line 76 def service_name=(service_name) Datadog.configuration[:faraday][:service_name] = service_name end