Sha256: 972f3c0e6f109c53f4387fd98ccc258e62febb45fed96aa11a2abd1360dcc55f

Contents?: true

Size: 641 Bytes

Versions: 14

Compression:

Stored size: 641 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

module NewRelic::Agent::Instrumentation
  module HTTPX
    module Chain
      def self.instrument!
        ::HTTPX::Session.class_eval do
          include NewRelic::Agent::Instrumentation::HTTPX

          alias_method(:send_requests_without_tracing, :send_requests)
          def send_requests(*requests)
            send_requests_with_tracing(*requests) { send_requests_without_tracing(*requests) }
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
newrelic_rpm-9.16.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.15.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.14.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.11.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.10.2 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.10.1 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.10.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.9.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.8.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.7.1 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.7.0 lib/new_relic/agent/instrumentation/httpx/chain.rb
newrelic_rpm-9.6.0 lib/new_relic/agent/instrumentation/httpx/chain.rb