Module: NewRelic::Security::Instrumentation::Roda::Prepend
- Defined in:
- lib/newrelic_security/instrumentation-security/roda/prepend.rb
Instance Method Summary collapse
Methods included from NewRelic::Security::Instrumentation::Roda
#_roda_handle_main_route_on_enter, #_roda_handle_main_route_on_exit
Instance Method Details
#_roda_handle_main_route(*args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/newrelic_security/instrumentation-security/roda/prepend.rb', line 7 def _roda_handle_main_route(*args) retval = nil event = _roda_handle_main_route_on_enter(env) do begin retval = super ensure NewRelic::Security::Agent.agent.error_reporting&.report_unhandled_or_5xx_exceptions(NewRelic::Security::Agent::Control::HTTPContext.get_current_transaction, NewRelic::Security::Agent::Control::HTTPContext.get_context, nil) end end _roda_handle_main_route_on_exit(event, retval) { return retval } end |