Module: NewRelic::Agent::Instrumentation::HTTPX::Chain
- Defined in:
- lib/new_relic/agent/instrumentation/httpx/chain.rb
Class Method Summary collapse
Class Method Details
.instrument! ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# 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 |