@radzor/error-tracker
Capture and report errors to external services (Sentry-style). Supports exceptions, messages, context enrichment, and breadcrumb trails. Uses raw fetch to a configurable endpoint — zero dependencies.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| endpoint* | string | — | HTTP endpoint to POST error reports to.ERROR_TRACKER_ENDPOINT |
| dsn | string | — | Optional DSN string included in the report header for service identification.ERROR_TRACKER_DSN |
| environment | string | production | Environment label (e.g. 'production', 'staging'). |
| maxBreadcrumbs | number | 50 | Maximum number of breadcrumbs to retain per report. |
| headers | Record<string, string> | — | Additional HTTP headers sent with each report. |