Skip to content

Commit

Permalink
Merge pull request #2391 from newrelic/dont_install_async_instrumenta…
Browse files Browse the repository at this point in the history
…tion_if_newrelic_traces

Skip Async-http instrumentation installation when Traces::Backend::NewRelic is defined
  • Loading branch information
tannalynn authored Jan 11, 2024
2 parents 13243df + 3b699da commit fd98f88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/new_relic/agent/instrumentation/async_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
named :async_http

depends_on do
defined?(Async::HTTP) && Gem::Version.new(Async::HTTP::VERSION) >= Gem::Version.new('0.59.0')
defined?(Async::HTTP) &&
Gem::Version.new(Async::HTTP::VERSION) >= Gem::Version.new('0.59.0') &&
!defined?(Traces::Backend::NewRelic) # defined in the traces-backend-newrelic gem
end

executes do
Expand Down

0 comments on commit fd98f88

Please sign in to comment.