Module: NewRelic::Security::Instrumentation::Sinatra::Base::Prepend

Includes:
NewRelic::Security::Instrumentation::Sinatra::Base
Defined in:
lib/newrelic_security/instrumentation-security/sinatra/prepend.rb

Instance Method Summary collapse

Methods included from NewRelic::Security::Instrumentation::Sinatra::Base

#call_on_enter, #call_on_exit, #dispatch_on_enter, #route_eval_on_enter

Instance Method Details

#call(env) ⇒ Object



8
9
10
11
12
# File 'lib/newrelic_security/instrumentation-security/sinatra/prepend.rb', line 8

def call(env)
  retval = nil
  event = call_on_enter(env) { retval = super }
  call_on_exit(event, retval) { return retval }
end

#dispatch!Object



18
19
20
# File 'lib/newrelic_security/instrumentation-security/sinatra/prepend.rb', line 18

def dispatch!
  dispatch_on_enter { super }
end

#route_evalObject



14
15
16
# File 'lib/newrelic_security/instrumentation-security/sinatra/prepend.rb', line 14

def route_eval
  route_eval_on_enter { super }
end