diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-13 14:31:59 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-13 14:31:59 +0300 |
| commit | ed7cf2505d92e05411d476b445bda45cab9aaf89 (patch) | |
| tree | 9de12631cda85c4336c0d8abf6266351fb0eb6fc /internal/statsengine/engine.go | |
| parent | 42645a4889c1e45ad2ab85e0a371ef8e1054062e (diff) | |
feat(eventloop): add panic recovery to events() goroutine for resilience
Wrap processRawEvent calls in a new processRawEventSafe() helper that
uses defer/recover to catch any panic from a callback and convert it into
a warning notification via warningCb, preventing a single bad event from
crashing the whole process. Added TestEventsPanicInCallbackIsRecoveredAndNotified
to verify the recovery behaviour end-to-end.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/statsengine/engine.go')
0 files changed, 0 insertions, 0 deletions
