class Datadog::Contrib::GRPC::Patcher::DeprecatedPin

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

Constants

DEPRECATION_WARNING

Public Instance Methods

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