Method: Atatus.report

Defined in:
lib/atatus.rb

.report(exception, context: nil, handled: true) ⇒ String

Report and exception to APM

Parameters:

  • exception (Exception)

    The exception

  • context (Context) (defaults to: nil)

    An optional [Context]

  • handled (Boolean) (defaults to: true)

    Whether the exception was rescued

Returns:

  • (String)

    ID of the generated [Error]



334
335
336
# File 'lib/atatus.rb', line 334

def report(exception, context: nil, handled: true)
  agent&.report(exception, context: context, handled: handled)
end