Sha256: 0333d74ec34cffb004d0b23307944ef334b2a477ba407e89ef9e582092ab2832

Contents?: true

Size: 708 Bytes

Versions: 16

Compression:

Stored size: 708 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 'instrumentation'

module NewRelic::Agent::Instrumentation
  module AsyncHttp::Chain
    def self.instrument!
      ::Async::HTTP::Internet.class_eval do
        include NewRelic::Agent::Instrumentation::AsyncHttp

        alias_method(:call_without_new_relic, :call)

        def call(method, url, headers = nil, body = nil)
          call_with_new_relic(method, url, headers, body) do |hdr|
            call_without_new_relic(method, url, hdr, body)
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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