lib/new_relic/agent/instrumentation/excon.rb in newrelic_rpm-6.15.0 vs lib/new_relic/agent/instrumentation/excon.rb in newrelic_rpm-7.0.0
- old
+ new
@@ -63,10 +63,11 @@
::NewRelic::Agent.logger.warn("Did not find :middlewares key in Excon.defaults, skipping Excon instrumentation")
end
end
def install_legacy_excon_instrumentation
- ::NewRelic::Agent.logger.info 'Installing legacy Excon instrumentation'
+ ::NewRelic::Agent::Deprecator.deprecate :install_legacy_excon_instrumentation, :install_middleware_excon_instrumentation, "8.0.0"
+ ::NewRelic::Agent.logger.warn 'Installing deprecated legacy Excon instrumentation. This instrumentation will be removed in a future release. Update Excon version to > 0.19.0 for updated instrumentation'
require 'new_relic/agent/instrumentation/excon/connection'
::Excon::Connection.install_newrelic_instrumentation
end
end