From 46c1cfb15e2ed7d7da653acd9f11c9abea388325 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 1 Nov 2026 18:10:06 +0000 Subject: [PATCH] Ignore wallet-provider {code, message} rejections in Sentry JAVASCRIPT-REACT-B is an unhandled rejection of a plain { code, message } object on the home page, from one Avast Secure Browser user, with no stack frames. That shape is what injected EIP-1193 wallet providers reject with. No code in src/, packages/, the built bundle, or Jam's recorder scripts rejects with it, so filter that exact message. Co-Authored-By: Claude Opus 5.5 --- src/lib/observability.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/observability.ts b/src/lib/observability.ts index cc5d6951..2f330b1d 100644 --- a/src/lib/observability.ts +++ b/src/lib/observability.ts @@ -181,7 +181,13 @@ async function loadSentry(): Promise { dsn: sentryDsn, release: import.meta.env.VITE_SENTRY_RELEASE || undefined, environment: import.meta.env.VITE_SENTRY_ENVIRONMENT || import.meta.env.MODE, - ignoreErrors: [/^Synthetic observability verification$/], + ignoreErrors: [ + /^Synthetic observability verification$/, + // Wallet providers that browsers and extensions inject into the page + // reject with a plain { code, message } (EIP-1193). Nothing in the app + // or its bundle rejects with that shape; our errors are Error objects. + /^Object captured as promise rejection with keys: code, message$/, + ], // No sendDefaultPii: deprecated, and Sentry ignores it whenever // dataCollection is set. The block below is the only PII control. beforeBreadcrumb: filterObservabilityBreadcrumb,