Module: NewRelic::Agent::Instrumentation::HTTPClient::Chain
- Defined in:
- lib/new_relic/agent/instrumentation/httpclient/chain.rb
Class Method Summary collapse
Class Method Details
.instrument! ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/new_relic/agent/instrumentation/httpclient/chain.rb', line 8 def self.instrument! ::HTTPClient.class_eval do include NewRelic::Agent::Instrumentation::HTTPClient::Instrumentation def do_get_block_with_newrelic(req, proxy, conn, &block) with_tracing(req, conn) do do_get_block_without_newrelic(req, proxy, conn, &block) end end alias :do_get_block_without_newrelic :do_get_block alias :do_get_block :do_get_block_with_newrelic end end |