Module: NewRelic::Security::Instrumentation::Rack::Builder::Chain
- Defined in:
- lib/newrelic_security/instrumentation-security/rack/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/rack/chain.rb', line 6 def self.instrument! ::Rack::Builder.class_eval do include NewRelic::Security::Instrumentation::Rack::Builder alias_method :call_without_security, :call def call(env) retval = nil event = call_on_enter(env) { retval = call_without_security(env) } call_on_exit(event, retval) { return retval } end end end |