Fix CEFSharp bot errors in Sentry - Fixes COMPILER-EXPLORER-C14 (#7965)

## Summary
- Suppress "Object Not Found Matching Id" errors from CEFSharp bots
- Generalizes existing suppression for Id:2 to catch all Id values
- Analysis shows 100% of these 76,000+ errors come from Windows + Chrome
(CEFSharp signature)

## Background
We're seeing thousands of `Object Not Found Matching Id:1,
MethodName:update, ParamCount:4` errors in Sentry. Investigation
reveals:

1. **These are bot errors, not user errors** - The error format is
specific to CEFSharp (.NET Chromium wrapper) used by automated scanners
2. **100% come from Windows + Chrome** - Analysis of all events shows
this consistent pattern, confirming they're from CEFSharp bots
3. **Likely Microsoft Outlook SafeLink** - Based on similar reports from
other projects, these are URL security scanners
4. **We already suppress Id:2** - PR #7103 added suppression for the
same error with Id:2

## Changes
Updated the Sentry ignore pattern from `/Object Not Found Matching
Id:2/` to `/Object Not Found Matching Id:\d+/` to catch all variants.

## References
- Similar issue reported:
https://github.com/DataDog/browser-sdk/issues/2715
- TrackJS documentation:
https://trackjs.com/javascript-errors/object-not-found-matching-id-methodname-paramcount/
- Previous PR that added Id:2 suppression: #7103

## Test plan
- [x] TypeScript checks pass
- [x] Tests pass
- [x] Pre-commit hooks pass

cc @OfekShilon - could you review this since you added the original
suppression?

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Matt Godbolt
2025-07-29 13:55:32 -05:00
committed by GitHub
parent d525150ae2
commit 60d3cc321c

View File

@@ -66,7 +66,13 @@ export function SetupSentry() {
// Source mapping happens AFTER beforeSend/ignoreErrors processing
/this.error\(new CancellationError\(\)/,
/new StandardMouseEvent\(monaco-editor/,
/Object Not Found Matching Id:2/,
// CEFSharp bot errors - these come from automated scanners, particularly Microsoft Outlook's
// SafeLink feature that scans URLs in emails. The error format "Object Not Found Matching Id:X,
// MethodName:Y, ParamCount:Z" is specific to CEFSharp (.NET Chromium wrapper).
// Analysis of 76,000+ events shows 100% come from Windows + Chrome (CEFSharp's signature).
// This pattern was previously seen with Id:2 (PR #7103).
// See: https://github.com/DataDog/browser-sdk/issues/2715
/Object Not Found Matching Id:\d+/,
/Illegal value for lineNumber/,
'SlowRequest',
// Monaco Editor clipboard cancellation errors