API Reference errorgap v#0.2.0

Copy Markdown View Source

Modules

Elixir notifier for Errorgap. Configure via Application env, then call Errorgap.notify/2 directly, attach Errorgap.Plug to your Phoenix endpoint, or wire Errorgap.LoggerHandler into :logger for handler-style capture of crash reports and high-severity logs.

Per-process breadcrumb trail attached to notices as context.breadcrumbs.

Reads the runtime configuration from the :errorgap application env, with ERRORGAP_* environment variables as defaults.

Masks sensitive map keys before they leave the process.

Minimal JSON encoder. Avoids a runtime dependency on :jason so the library has zero non-stdlib deps. Handles only the types used in notice envelopes: map, list, binary, atom, number, boolean, nil.

An OTP :logger handler that reports crash reports to Errorgap.

A Plug that reports unhandled exceptions to Errorgap. Add to the top of your Phoenix endpoint

Build APM spans (database queries and outbound HTTP calls) to attach to a transaction via Errorgap.notify_transaction/2.

Build APM transactions — a web interaction (kind: "web") or a background job (kind: "job") — to deliver via Errorgap.notify_transaction/2.