module NewRelic::Agent::Instrumentation::NetHTTP::Chain
Public Class Methods
instrument!()
click to toggle source
# 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
Public Instance Methods
request_with_newrelic_trace(request, *args, &block)
click to toggle source
# File lib/new_relic/agent/instrumentation/net_http/chain.rb, line 14 def request_with_newrelic_trace(request, *args, &block) request_with_tracing(request) { request_without_newrelic_trace(request, *args, &block) } end