summaryrefslogtreecommitdiff
path: root/internal/statsengine/engine.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-13 14:31:59 +0300
committerPaul Buetow <paul@buetow.org>2026-05-13 14:31:59 +0300
commited7cf2505d92e05411d476b445bda45cab9aaf89 (patch)
tree9de12631cda85c4336c0d8abf6266351fb0eb6fc /internal/statsengine/engine.go
parent42645a4889c1e45ad2ab85e0a371ef8e1054062e (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