Module: NewRelic::Agent::Instrumentation::NetHTTP::Chain
- Defined in:
- lib/new_relic/agent/instrumentation/net_http/chain.rb
Class Method Summary collapse
Class Method Details
.instrument! ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/new_relic/agent/instrumentation/net_http/chain.rb', line 10 def self.instrument! Net::HTTP.class_eval do include NewRelic::Agent::Instrumentation::NetHTTP def request_with_newrelic_trace(request, *args, &block) request_with_tracing(request) { request_without_newrelic_trace(request, *args, &block) } end alias request_without_newrelic_trace request alias request request_with_newrelic_trace end end |