Skip to content

sentry: ignore Office add-in + ResizeObserver browser noise - #39

Merged
utsengar merged 1 commit into
mainfrom
sentry-ignore-office-addin-noise
May 31, 2026
Merged

sentry: ignore Office add-in + ResizeObserver browser noise#39
utsengar merged 1 commit into
mainfrom
sentry-ignore-office-addin-noise

Conversation

@utsengar

Copy link
Copy Markdown
Owner

Summary

  • Filters the Object Not Found Matching Id:1, MethodName:update, ParamCount:4 unhandled rejection (Sentry issue HTMLBIN-2) — it comes from the Microsoft Office Editor browser add-in misbehaving in the page context on Windows + Edge/Chrome, not from htmlbin code.
  • Adds two ResizeObserver filters (loop limit exceeded, loop completed with undelivered notifications) — benign Chrome implementation detail every Sentry project filters eventually.
  • Implemented as a single ignoreErrors array passed to Sentry.init({...}) in the inline /sentry.js body at src/index.ts:243.

Why this is safe

  • ignoreErrors is a substring/regex match — it only drops events whose message matches these very specific strings, none of which appear anywhere in our own code (grep confirms zero matches for "Object Not Found Matching Id" or "ResizeObserver loop" in src/).
  • The Sentry SDK still records all other unhandled rejections; this only removes the known third-party noise classes.

Test plan

  • Preview URL boots, /sentry.js serves the updated body, Sentry.init call now includes ignoreErrors
  • No regression in real error capture — trigger a synthetic error in DevTools (Promise.reject(new Error("test"))) and confirm it still reaches Sentry
  • After merge: mark HTMLBIN-2 as resolved in the Sentry UI so existing events stop re-firing (filter only drops future events)

🤖 Generated with Claude Code

The "Object Not Found Matching Id:1, MethodName:update, ParamCount:4"
unhandled rejection in Sentry (HTMLBIN-2) comes from the Microsoft
Office Editor add-in misbehaving in the page context on Windows +
Edge/Chrome — not our code. Filter it via Sentry.init({ ignoreErrors }).
Bundle in the two ResizeObserver messages while we're here; same class
of "browser implementation detail, not our bug" noise every Sentry
project filters eventually.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Cloudflare preview

URL: https://f2fd0fb6-htmlbin.utkarsh2012.workers.dev

Built from commit 61455ef19b16f9295ea324a169cdc0086eef299d.

Note: bindings (D1, KV, AI) are shared with production.
Avoid destructive PR tests on real data.

@utsengar
utsengar merged commit a36800d into main May 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant