Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit e3450e3

Browse files
committed
fix: ignore "unauthorized" errors in Sentry
Pass ignoreErrors: ['unauthorized'] to initLogger so the Sentry SDK drops events whose exception message is "unauthorized" — these are client-side auth failures from score-api, expected as 4xx responses, not actionable at the SDK level. Removes ~25k events/cycle across SNAPSHOT-SEQUENCER-26/-37/-38. Filtering happens in @snapshot-labs/snapshot-sentry via Sentry's built-in ignoreErrors option (snapshot-labs/snapshot-sentry#18) — no local capture wrapper needed.
1 parent 5a65057 commit e3450e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/instrument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { initLogger } from '@snapshot-labs/snapshot-sentry';
22

3-
initLogger();
3+
initLogger({ ignoreErrors: ['unauthorized'] });

0 commit comments

Comments
 (0)