You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(router): remove Sentry filter for removed third-party ad scripts - #1621
Removes the Sentry beforeSend filter that dropped errors whose stack frames all came from Publift's Fuse ad scripts (ftUtils.js, fuseplatform.net). Third-party ads were removed from the site, and nothing in the repo loads those scripts anymore, so the filter can't match. The BYOK header redaction and stale-app recovery handling in the same hook are unchanged.
Verification
No references to fuseplatform, publift or ftUtils remain outside the blog post about removing ads.
tsc, oxlint and pnpm knip pass.
Summary by CodeRabbit
Bug Fixes
Error events with stack traces originating entirely from certain application or platform scripts are now reported instead of being filtered out.
Errors identified as stale app recovery events continue to be suppressed.
No actionable comments were generated in the recent review.
Walkthrough
The Sentry beforeSend handler no longer suppresses events when all stack frames match the ftUtils.js or fuseplatform.net filename conditions. It still suppresses errors identified by consumeStaleAppRecovery.
Changes: Sentry event filtering
Layer / File(s)
Summary
Update Sentry event filtering src/router.tsx
Removed the stack-frame filename filter from beforeSend. The stale-app recovery filter remains. Other events are returned.
This removes a Sentry filter for third-party ad script errors that no longer apply now that ads are gone. Application behavior is unchanged, and the redaction and stale-app handling in the same hook still work. No merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: removing the Sentry beforeSend filter that dropped errors from the Fuse ad scripts. The raw summary confirms the filter for ftUtils.js and fuseplatform.net frames was …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: removing the Sentry beforeSend filter that dropped errors from the Fuse ad scripts. The raw summary confirms the filter for ftUtils.js and fuseplatform.net frames was removed from src/router.tsx, and the objectives say this filter was the only target. The 'refactor(router):' prefix is accurate for a removal in router.tsx. The title is specific and matches the changeset.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 7b180929-9bfd-4486-80c5-39848243c3ba
Commits
Reviewing files that changed from the base of the PR and between 09ea510 and ad95c6e.
Files selected for processing: 1
src/router.tsx
Files with no reviewable changes: 1
src/router.tsx
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
The removed filter only covered ad scripts the site no longer loads. The credential-header redaction and stale-app recovery handling still run first and are unchanged. I'm landing this cleanup with passing checks.
AI review notes: At ad95c6e, searched src, public and scripts for fuseplatform, Publift and ftUtils; only the historical ad-removal blog post remains. Reviewed the full beforeSend hook and the deletion. CI passes; its report shows raw JavaScript down 0.19 KiB, total gzip JavaScript up 0.30 KiB and unchanged CSS. No repository size threshold or item-specific no-growth hold applies. I did not access private Sentry incidents or repeat runtime telemetry tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the Sentry
beforeSendfilter that dropped errors whose stack frames all came from Publift's Fuse ad scripts (ftUtils.js,fuseplatform.net). Third-party ads were removed from the site, and nothing in the repo loads those scripts anymore, so the filter can't match. The BYOK header redaction and stale-app recovery handling in the same hook are unchanged.Verification
fuseplatform,publiftorftUtilsremain outside the blog post about removing ads.tsc,oxlintandpnpm knippass.Summary by CodeRabbit