Sha256: 30a46c92b183f145a2b9da1bb4fde03847efb86813537a6e91cc03e9c61b7a4d
Contents?: true
Size: 845 Bytes
Versions: 4
Compression:
Stored size: 845 Bytes
Contents
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true require_relative 'async_http/instrumentation' require_relative 'async_http/chain' require_relative 'async_http/prepend' DependencyDetection.defer do named :async_http depends_on do 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 require 'async/http/internet' if use_prepend? prepend_instrument Async::HTTP::Internet, NewRelic::Agent::Instrumentation::AsyncHttp::Prepend else chain_instrument NewRelic::Agent::Instrumentation::AsyncHttp::Chain end end end
Version data entries
4 entries across 4 versions & 1 rubygems