lib/new_relic/agent/instrumentation/excon.rb in newrelic_rpm-9.0.0 vs lib/new_relic/agent/instrumentation/excon.rb in newrelic_rpm-9.1.0
- old
+ new
@@ -16,11 +16,11 @@
# itself conform to the #subscribe interface of ActiveSupport::Notifications,
# so we could safely subscribe and not be clobbered by future subscribers,
# but alas, it does not yet.
# TODO: MAJOR VERSION - update min version to 0.56.0
- EXCON_MIN_VERSION = Gem::Version.new("0.19.0")
+ EXCON_MIN_VERSION = Gem::Version.new('0.19.0')
depends_on do
defined?(Excon) && defined?(Excon::VERSION)
end
@@ -44,11 +44,11 @@
:warn,
:deprecated_excon_version,
deprecation_msg
)
- NewRelic::Agent.record_metric("Supportability/Deprecated/Excon", 1)
+ NewRelic::Agent.record_metric('Supportability/Deprecated/Excon', 1)
end
def install_excon_instrumentation(excon_version)
require 'new_relic/agent/distributed_tracing/cross_app_tracing'
require 'new_relic/agent/http_clients/excon_wrappers'
@@ -62,9 +62,9 @@
defaults = Excon.defaults
if defaults[:middlewares]
defaults[:middlewares] << Excon::Middleware::NewRelicCrossAppTracing
else
- NewRelic::Agent.logger.warn("Did not find :middlewares key in Excon.defaults, skipping Excon instrumentation")
+ NewRelic::Agent.logger.warn('Did not find :middlewares key in Excon.defaults, skipping Excon instrumentation')
end
end
end