lib/new_relic/agent/instrumentation/curb.rb in newrelic_rpm-8.13.1 vs lib/new_relic/agent/instrumentation/curb.rb in newrelic_rpm-8.14.0
- old
+ new
@@ -9,24 +9,24 @@
named :curb
CURB_MIN_VERSION = Gem::Version.new("0.8.1")
depends_on do
- defined?(::Curl) && defined?(::Curl::CURB_VERSION) &&
- Gem::Version.new(::Curl::CURB_VERSION) >= CURB_MIN_VERSION
+ defined?(Curl) && defined?(Curl::CURB_VERSION) &&
+ Gem::Version.new(Curl::CURB_VERSION) >= CURB_MIN_VERSION
end
executes do
- ::NewRelic::Agent.logger.info('Installing Curb instrumentation')
+ NewRelic::Agent.logger.info('Installing Curb instrumentation')
require 'new_relic/agent/distributed_tracing/cross_app_tracing'
require 'new_relic/agent/http_clients/curb_wrappers'
end
executes do
if use_prepend?
- prepend_instrument ::Curl::Easy, NewRelic::Agent::Instrumentation::Curb::Easy::Prepend
- prepend_instrument ::Curl::Multi, NewRelic::Agent::Instrumentation::Curb::Multi::Prepend
+ prepend_instrument Curl::Easy, NewRelic::Agent::Instrumentation::Curb::Easy::Prepend
+ prepend_instrument Curl::Multi, NewRelic::Agent::Instrumentation::Curb::Multi::Prepend
else
- chain_instrument ::NewRelic::Agent::Instrumentation::Curb::Chain
+ chain_instrument NewRelic::Agent::Instrumentation::Curb::Chain
end
end
end