fix: Ignore "Premature close" stream errors in Sentry (#12424)

Client disconnects mid-response surface as "Premature close" errors from
Node's stream end-of-stream helper. These are expected and add noise to
Sentry, similar to the EPIPE/ECONNRESET errors already filtered.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Tom Moor
2026-05-21 21:26:27 -04:00
committed by GitHub
parent efc988fb9f
commit cf488508b7
+3
View File
@@ -25,6 +25,9 @@ if (env.SENTRY_DSN) {
"AuthRedirectError",
"UserSuspendedError",
"TooManyRequestsError",
// Client disconnects
"Premature close",
],
beforeSend(event) {
try {