lib/new_relic/agent/instrumentation/redis.rb in newrelic_rpm-3.17.1.326 vs lib/new_relic/agent/instrumentation/redis.rb in newrelic_rpm-3.17.2.327
- old
+ new
@@ -10,12 +10,13 @@
module Instrumentation
module Redis
extend self
UNKNOWN = "unknown".freeze
+ LOCALHOST = "localhost".freeze
def host_for(client)
- client.path ? NewRelic::Agent::Hostname.get : NewRelic::Agent::Hostname.get_external(client.host)
+ client.path ? LOCALHOST : client.host
rescue => e
NewRelic::Agent.logger.debug "Failed to retrieve Redis host: #{e}"
UNKNOWN
end