Sha256: aac4a34ad91f027f1300e08176509ca62923523712a859a964724c5234fbfbee

Contents?: true

Size: 685 Bytes

Versions: 6

Compression:

Stored size: 685 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.

module NewRelic::Agent::Instrumentation
  module HTTPrb
    module Chain
      def self.instrument!
        ::HTTP::Client.class_eval do
          include NewRelic::Agent::Instrumentation::HTTPrb

          def perform_with_newrelic_trace(request, options)
            with_tracing(request) { perform_without_newrelic_trace(request, options) }
          end
       
          alias perform_without_newrelic_trace perform
          alias perform perform_with_newrelic_trace
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
newrelic_rpm-8.2.0 lib/new_relic/agent/instrumentation/httprb/chain.rb
newrelic_rpm-8.1.0 lib/new_relic/agent/instrumentation/httprb/chain.rb
newrelic_rpm-8.0.0 lib/new_relic/agent/instrumentation/httprb/chain.rb
newrelic_rpm-7.2.0 lib/new_relic/agent/instrumentation/httprb/chain.rb
newrelic_rpm-7.1.0 lib/new_relic/agent/instrumentation/httprb/chain.rb
newrelic_rpm-7.0.0 lib/new_relic/agent/instrumentation/httprb/chain.rb