AppSignal v1.0.0 Appsignal.ErrorHandler

Error handler which sends all crash reports to the AppSignal backend.

When you add :appsignal to your application’s dependencies, this error logger will automatically be installed. All processes that are supervised, like GenServers, Tasks, Agents, Supervisored will be monitored for crashes. In the case of a crash, the AppSignal error handler collects error information and sends it to the backend.

Summary

Functions

Extract a consise reason from the given error reason, stripping it from long stack traces and the like. Also returns a ‘message’ which is supposed to contain extra error information

Retrieve the last Appsignal.Transaction.t that the error logger picked up

Functions

extract_reason_and_message(reason, message)
extract_reason_and_message(any, binary) :: {any, binary}

Extract a consise reason from the given error reason, stripping it from long stack traces and the like. Also returns a ‘message’ which is supposed to contain extra error information.

get_last_transaction()
get_last_transaction :: Appsignal.Transaction.t | nil

Retrieve the last Appsignal.Transaction.t that the error logger picked up

normalize_reason(reason)
submit_transaction(transaction, reason, message, stack, metadata, conn \\ nil)