Module: NewRelic::Security::Instrumentation::Grape::API::Instance::Prepend
- Defined in:
- lib/newrelic_security/instrumentation-security/grape/prepend.rb
Instance Method Summary collapse
Methods included from NewRelic::Security::Instrumentation::Grape::API::Instance
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/newrelic_security/instrumentation-security/grape/prepend.rb', line 9 def call(env) retval = nil event = call_on_enter(env) do begin retval = super(env) 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 call_on_exit(event, retval) { return retval } end |