Module: NewRelic::Security::Instrumentation::Grape::API::Instance::Prepend
Instance Method Summary
collapse
#call_on_enter, #call_on_exit
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
|