Module: NewRelic::Agent::Instrumentation::Typhoeus::Chain

Defined in:
lib/new_relic/agent/instrumentation/typhoeus/chain.rb

Class Method Summary collapse

Class Method Details

.instrument!Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/new_relic/agent/instrumentation/typhoeus/chain.rb', line 8

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