lib/new_relic/agent/instrumentation/redis.rb in newrelic_rpm-8.13.1 vs lib/new_relic/agent/instrumentation/redis.rb in newrelic_rpm-8.14.0
- old
+ new
@@ -15,29 +15,29 @@
# Why not :redis? newrelic-redis used that name, so avoid conflicting
named :redis_instrumentation
configure_with :redis
depends_on do
- defined?(::Redis) && defined?(::Redis::VERSION)
+ defined?(Redis) && defined?(Redis::VERSION)
end
conflicts_with_prepend do
- defined?(::PrometheusExporter)
+ defined?(PrometheusExporter)
end
depends_on do
NewRelic::Agent::Datastores::Redis.is_supported_version? &&
NewRelic::Agent::Datastores::Redis.safe_from_third_party_gem?
end
executes do
NewRelic::Agent.logger.info('Installing Redis Instrumentation')
if NewRelic::Agent::Instrumentation::Redis::Constants::HAS_REDIS_CLIENT
- ::RedisClient.register(NewRelic::Agent::Instrumentation::RedisClient::Middleware)
+ RedisClient.register(NewRelic::Agent::Instrumentation::RedisClient::Middleware)
end
if use_prepend?
- prepend_instrument ::Redis::Client, NewRelic::Agent::Instrumentation::Redis::Prepend
+ prepend_instrument Redis::Client, NewRelic::Agent::Instrumentation::Redis::Prepend
else
chain_instrument NewRelic::Agent::Instrumentation::Redis::Chain
end
end
end