Module: NewRelic::Security::Instrumentation::AsyncHttp::Prepend

Includes:
NewRelic::Security::Instrumentation::AsyncHttp
Defined in:
lib/newrelic_security/instrumentation-security/async-http/prepend.rb

Instance Method Summary collapse

Methods included from NewRelic::Security::Instrumentation::AsyncHttp

#call_on_enter, #call_on_exit

Instance Method Details

#call(method, url, headers = nil, body = nil) ⇒ Object



7
8
9
10
11
# File 'lib/newrelic_security/instrumentation-security/async-http/prepend.rb', line 7

def call(method, url, headers = nil, body = nil)
  retval = nil
  event = call_on_enter(method, url, headers, body) { retval = super }
  call_on_exit(event) { return retval }
end