Module: NewRelic::Security::Instrumentation::HTTPX::Session::Chain
- Defined in:
- lib/newrelic_security/instrumentation-security/httpx/chain.rb
Class Method Summary collapse
Class Method Details
.instrument! ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/newrelic_security/instrumentation-security/httpx/chain.rb', line 6 def self.instrument! ::HTTPX::Session.class_eval do include NewRelic::Security::Instrumentation::HTTPX::Session alias_method :send_requests_without_security, :send_requests def send_requests(*args) retval = nil event = send_requests_on_enter(*args) { retval = send_requests_without_security(*args) } send_requests_on_exit(event) { return retval } end end end |