Skip to content

feat(errors): error tracking in the site's own database - #34

Merged
xiregroup merged 2 commits into
mainfrom
feat/errors
Nov 18, 2026
Merged

xiregroup merged 2 commits into
mainfrom
feat/errors

Conversation

@xiregroup

Copy link
Copy Markdown
Contributor

A new module, alveby/atrium-errors: a small Sentry inside the site.

  • Captures PHP exceptions, failed queue jobs, failed scheduled tasks and
    JavaScript errors of visitors' browsers (a rate-limited endpoint and a
    small script added to public pages).
  • Groups events by class and the in-app frames, so one bug is one issue;
    statuses new, resolved, ignored, with regression when a resolved bug
    happens again and "resolve in next release".
  • Site health > Errors: the list with search, status, site, release and
    path filters; the issue page with the trace and code around each frame,
    the request, tops, a chart and every occurrence; a dashboard tile.
  • Mail and Telegram alerts for new issues, regressions and spikes,
    throttled.
  • Secrets and personal data are scrubbed before anything is stored;
    sampling, a per-minute cap, writing after the response or on a queue,
    a fallback log, 90 days kept by a pruning command.
  • Drivers: database, sentry (Sentry or GlitchTip by DSN, no SDK) and log,
    behind a documented ErrorReporter contract for Bugsnag, Rollbar or a
    webhook.
  • Rights errors.view and errors.settings; administrators of some sites
    see only their sites' errors.
  • Docs in English and Russian, the package in every README.

A new module, alveby/atrium-errors: a small Sentry inside the site.

- Captures PHP exceptions, failed queue jobs, failed scheduled tasks and
  JavaScript errors of visitors' browsers (a rate-limited endpoint and a
  small script added to public pages).
- Groups events by class and the in-app frames, so one bug is one issue;
  statuses new, resolved, ignored, with regression when a resolved bug
  happens again and "resolve in next release".
- Site health > Errors: the list with search, status, site, release and
  path filters; the issue page with the trace and code around each frame,
  the request, tops, a chart and every occurrence; a dashboard tile.
- Mail and Telegram alerts for new issues, regressions and spikes,
  throttled.
- Secrets and personal data are scrubbed before anything is stored;
  sampling, a per-minute cap, writing after the response or on a queue,
  a fallback log, 90 days kept by a pruning command.
- Drivers: database, sentry (Sentry or GlitchTip by DSN, no SDK) and log,
  behind a documented ErrorReporter contract for Bugsnag, Rollbar or a
  webhook.
- Rights errors.view and errors.settings; administrators of some sites
  see only their sites' errors.
- Docs in English and Russian, the package in every README.
@xiregroup
xiregroup enabled auto-merge November 18, 2026 19:48
@xiregroup
xiregroup added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 60081fc Nov 18, 2026
15 checks passed
@xiregroup
xiregroup deleted the feat/errors branch November 18, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant