lib/new_relic/agent/instrumentation/elasticsearch.rb in newrelic_rpm-8.13.1 vs lib/new_relic/agent/instrumentation/elasticsearch.rb in newrelic_rpm-8.14.0
- old
+ new
@@ -8,19 +8,19 @@
DependencyDetection.defer do
named :elasticsearch
depends_on do
- defined?(::Elasticsearch)
+ defined?(Elasticsearch)
end
executes do
- ::NewRelic::Agent.logger.info('Installing Elasticsearch instrumentation')
+ NewRelic::Agent.logger.info('Installing Elasticsearch instrumentation')
- to_instrument = if ::Gem::Version.create(::Elasticsearch::VERSION) < ::Gem::Version.create("8.0.0")
- ::Elasticsearch::Transport::Client
+ to_instrument = if Gem::Version.create(Elasticsearch::VERSION) < Gem::Version.create("8.0.0")
+ Elasticsearch::Transport::Client
else
- ::Elastic::Transport::Client
+ Elastic::Transport::Client
end
if use_prepend?
prepend_instrument to_instrument, NewRelic::Agent::Instrumentation::Elasticsearch::Prepend
else