AppSignal v1.6.3 Appsignal.ErrorHandler View Source

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.

Link to this section 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

Link to this section Functions

Link to this function extract_reason_and_message(reason, message) View Source
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.

Link to this function get_last_transaction() View Source
get_last_transaction() :: Appsignal.Transaction.t() | nil

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

Link to this function handle_call(atom, state) View Source
Link to this function handle_event(event, state) View Source
Link to this function normalize_reason(reason) View Source
Link to this function submit_transaction(transaction, reason, message, stack, metadata, conn \\ nil) View Source