feat(server): measure the Postgres driver null-socket crash on fatal errors

Add a process-level handler for uncaughtException and unhandledRejection.
It reports a fixed-cardinality verdict to first-party telemetry — whether
the crash matches the known postgres null-socket write defect — and calls
process.exit(1) on every path, so it does not change today's crash
behavior. This adds measurement only; it does not guard against the
defect.

Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Priya RamanandPaperclip committed 2026-08-27 21:05:38 +00:00
1 parent 3d9be6f7fe
commit 2d6c3dc597
5 files changed
+207

No files matched your search

Binary file not shown.