Sha256: e9bf3d4fae71b2a038101f0262f9638c164f9c57bafd90587a11d68bcb17bc1a

Contents?: true

Size: 607 Bytes

Versions: 7

Compression:

Stored size: 607 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 Typhoeus
    module Chain
      def self.instrument!
        ::Typhoeus::Hydra.class_eval do
          include NewRelic::Agent::Instrumentation::Typhoeus

          def run_with_newrelic(*args)
            with_tracing { run_without_newrelic(*args) }
          end

          alias run_without_newrelic run
          alias run run_with_newrelic
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-8.9.0 lib/new_relic/agent/instrumentation/typhoeus/chain.rb
newrelic_rpm-8.8.0 lib/new_relic/agent/instrumentation/typhoeus/chain.rb
newrelic_rpm-8.7.0 lib/new_relic/agent/instrumentation/typhoeus/chain.rb
newrelic_rpm-8.6.0 lib/new_relic/agent/instrumentation/typhoeus/chain.rb
newrelic_rpm-8.5.0 lib/new_relic/agent/instrumentation/typhoeus/chain.rb
newrelic_rpm-8.4.0 lib/new_relic/agent/instrumentation/typhoeus/chain.rb
newrelic_rpm-8.3.0 lib/new_relic/agent/instrumentation/typhoeus/chain.rb