module NewRelic::Agent::Instrumentation::HTTPrb::Chain

Public Class Methods

instrument!() click to toggle source
# File lib/new_relic/agent/instrumentation/httprb/chain.rb, line 8
def self.instrument!
  ::HTTP::Client.class_eval do
    include NewRelic::Agent::Instrumentation::HTTPrb

    def perform_with_newrelic_trace(request, options)
      with_tracing(request) { perform_without_newrelic_trace(request, options) }
    end

    alias perform_without_newrelic_trace perform
    alias perform perform_with_newrelic_trace
  end
end

Public Instance Methods

perform_with_newrelic_trace(request, options) click to toggle source
# File lib/new_relic/agent/instrumentation/httprb/chain.rb, line 12
def perform_with_newrelic_trace(request, options)
  with_tracing(request) { perform_without_newrelic_trace(request, options) }
end