Skip to content

fix(rum): drop browser-extension "Object Not Found Matching Id" errors - #1433

Merged
dawsontoth merged 1 commit into
stagefrom
fix/rum-drop-browser-extension-object-not-found
Jul 9, 2026
Merged

fix(rum): drop browser-extension "Object Not Found Matching Id" errors#1433
dawsontoth merged 1 commit into
stagefrom
fix/rum-drop-browser-extension-object-not-found

Conversation

@dawsontoth

Copy link
Copy Markdown
Contributor

Summary

Adds a beforeSend filter rule in shouldKeepEvent to discard the browser-extension-injected Object Not Found Matching Id:N, MethodName:update, ParamCount:4 error from RUM.

Datadog findings (last 24h, 2026-07-09)

Surfaced by the daily RUM review. This error became the #1 error by volume, and it was entirely absent in the prior 24h window:

Window Object Not Found Matching Id events Total RUM errors
48h→24h ago 0 773
last 24h ~1,160 (Id:1 → 652, Id:2 → 507) 1,783

Characterization of a sampled 390 events:

  • Only 2 distinct sessions (one Mac OS X, one Windows), both Chrome 142, all on the / view, all app version v2.133.0.
  • Thrown as a bare string, not an Error: RUM records type: null, handling: unhandled, and stack: "No stack, consider using an instance of Error".

This is the well-known signature of an error injected by a browser extension, not thrown by Studio code. A single extension-carrying session emits hundreds of them, so a couple of users nearly doubled total RUM error volume and drowned real signal in Error Tracking — without pointing at any Studio bug.

Fix

Drop events whose message matches /Object Not Found Matching Id:\d+, MethodName:/i, alongside the existing connectivity/noise drops (timeouts #1371, 401s #1386, etc.). Added a regression test; full suite green (1226 passed).

Notes

  • No customer-identifying information is included (session IDs are opaque UUIDs; browser/OS are generic).
  • This is noise suppression only — it does not mask any Studio-originated error.

🤖 Generated with Claude Code

A browser extension injects `Object Not Found Matching Id:N,
MethodName:update, ParamCount:4` as a bare thrown string (RUM records
type: null, no stack). Only the few sessions whose user has the extension
installed emit it, but each emits hundreds: on 2026-07-09, 2 sessions
produced ~1160 events in 24h, doubling total RUM error volume without
pointing at any Studio bug. Drop it in the beforeSend filter, matching the
stable signature, alongside the other connectivity/noise drops.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dawsontoth
dawsontoth requested a review from a team as a code owner July 9, 2026 14:06

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds logic to discard browser-extension-injected 'Object Not Found Matching Id' errors in Datadog RUM events, preventing them from inflating error volumes. It includes a regex-based check in shouldKeepEvent.ts and corresponding regression tests in shouldKeepEvent.test.ts. There are no review comments, and I have no feedback to provide.

@dawsontoth
dawsontoth merged commit 29e5585 into stage Jul 9, 2026
2 checks passed
@dawsontoth
dawsontoth deleted the fix/rum-drop-browser-extension-object-not-found branch July 9, 2026 14:20
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