Files
worldmonitor/src
Elie Habib 1b4335353f fix(sentry): suppress 6 noise patterns from triage (#3105)
* fix(sentry): suppress 6 noise patterns flagged in triage

Add filters so resolved issues don't re-fire:
- Convex "Connection lost while action was in flight" → ignoreErrors
- Convex WS onmessage JSON.parse truncation (Ping/Updated frames) → beforeSend gated on onmessage frame
- chrome/moz/safari-extension frames intercepting fetch → beforeSend
- Sentry SDK breadcrumb null.contains DOM crash → beforeSend gated on sentry chunk
- bare "Failed to fetch" (no TypeError: prefix in msg) → extend existing regex

* test(sentry): tighten onmessage guard + add tests for 3 new filters

Review feedback from PR #3105:
- add !hasFirstParty guard to Convex WS onmessage JSON-parse filter
- add 6 test cases covering chrome-extension drop, sentry null.contains
  gate, and Convex onmessage suppression + first-party regression paths

* fix(sentry): gate extension and sentry-contains filters on !hasFirstParty

Review feedback PR #3105 (round 2):
- extension-frame drop no longer suppresses events when a first-party
  frame is also on the stack (a real app regression could have an
  extension wrapper around it)
- sentry null.contains filter no longer suppresses when a first-party
  frame is present (Sentry wraps first-party handlers, so a genuine
  el.contains() bug produces a stack with both main-*.js and sentry-*.js)

Adds 3 more tests covering the !hasFirstParty boundary.
2026-04-15 15:28:15 +04:00
..
2026-03-20 12:37:24 +04:00