module NewRelic::Agent::Instrumentation::HTTPX::Chain

Public Class Methods

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

    alias_method(:send_requests_without_tracing, :send_requests)
    def send_requests(*requests)
      send_requests_with_tracing(*requests) { send_requests_without_tracing(*requests) }
    end
  end
end

Public Instance Methods

send_requests(*requests) click to toggle source
# File lib/new_relic/agent/instrumentation/httpx/chain.rb, line 13
def send_requests(*requests)
  send_requests_with_tracing(*requests) { send_requests_without_tracing(*requests) }
end