Module: NewRelic::Security::Instrumentation::Padrino::PathRouter::Router::Chain
- Defined in:
- lib/newrelic_security/instrumentation-security/padrino/chain.rb
Class Method Summary collapse
Class Method Details
.instrument! ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/newrelic_security/instrumentation-security/padrino/chain.rb', line 7 def self.instrument! ::Padrino::PathRouter::Router.class_eval do include NewRelic::Security::Instrumentation::Padrino::PathRouter::Router alias_method :call_without_security, :call def call(env, &block) retval = nil event = call_on_enter(env) { retval = call_without_security(env, &block) } call_on_exit(event, retval) { return retval } end end end |