class Datadog::Contrib::Grape::Patcher::DeprecatedPin

Implementation of deprecated Pin, which raises warnings when accessed. To be removed when support for Datadog::Pin with Grape is removed.

Constants

DEPRECATION_WARNING

Public Instance Methods

log_deprecation_warning(method_name) click to toggle source
# File lib/ddtrace/contrib/grape/patcher.rb, line 64
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/grape/patcher.rb, line 60
def service_name=(service_name)
  Datadog.configuration[:grape][:service_name] = service_name
end
tracer=(tracer) click to toggle source
# File lib/ddtrace/contrib/grape/patcher.rb, line 56
def tracer=(tracer)
  Datadog.configuration[:grape][:tracer] = tracer
end