Skip to content

refactor(router): remove Sentry filter for removed third-party ad scripts - #1621

Merged
tannerlinsley merged 1 commit into
mainfrom
refactor/remove-ad-script-error-filter
Nov 23, 2026
Merged

tannerlinsley merged 1 commit into
mainfrom
refactor/remove-ad-script-error-filter

Conversation

@sukvvon

@sukvvon sukvvon commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

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.

@sukvvon sukvvon self-assigned this Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Refactor

Suggested reviewers: tkdodo

Merge Risk: Minimal · up to ad95c

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

@github-actions

Copy link
Copy Markdown
Asset Main PR merge build Change
JavaScript 19580.23 KiB 19580.04 KiB 🟢 -0.19 KiB (-0.00%)
JavaScript (gzip) 6443.91 KiB 6444.21 KiB 🔴 +0.30 KiB (+0.00%)
CSS 823.62 KiB 823.62 KiB 0.00 KiB (0.00%)
CSS (gzip) 126.08 KiB 126.08 KiB 0.00 KiB (0.00%)
Page Main (gzip) PR merge build (gzip) Change
/ 595.19 KiB 595.13 KiB 🟢 -0.05 KiB (-0.01%)
/libraries 538.03 KiB 537.98 KiB 🟢 -0.05 KiB (-0.01%)
/start/latest 562.83 KiB 562.79 KiB 🟢 -0.03 KiB (-0.01%)
/router/latest 563.13 KiB 563.10 KiB 🟢 -0.03 KiB (-0.01%)
/query/latest 561.58 KiB 561.53 KiB 🟢 -0.04 KiB (-0.01%)
/table/latest 594.38 KiB 594.35 KiB 🟢 -0.04 KiB (-0.01%)
/charts/latest 643.68 KiB 643.63 KiB 🟢 -0.05 KiB (-0.01%)
/ai/latest 588.51 KiB 588.48 KiB 🟢 -0.03 KiB (-0.01%)
Docs article 549.09 KiB 549.04 KiB 🟢 -0.05 KiB (-0.01%)
Framework docs article 549.10 KiB 549.05 KiB 🟢 -0.05 KiB (-0.01%)
/blog 542.25 KiB 542.20 KiB 🟢 -0.06 KiB (-0.01%)
/maintainers 541.34 KiB 541.29 KiB 🟢 -0.06 KiB (-0.01%)
/showcase 539.29 KiB 539.24 KiB 🟢 -0.05 KiB (-0.01%)
/chat 537.77 KiB 537.71 KiB 🟢 -0.06 KiB (-0.01%)
/chat/c/:conversationId 538.48 KiB 538.43 KiB 🟢 -0.05 KiB (-0.01%)

Page sizes sum the JS and CSS in the TanStack Start manifest for each route and its layouts. Shared files count once per page.

Compared with main at 09ea510. Gzip sizes are summed per file. Build run

@tannerlinsley

Copy link
Copy Markdown
Member

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.

@tannerlinsley
tannerlinsley merged commit 77e721b into main Nov 23, 2026
11 checks passed
@tannerlinsley
tannerlinsley deleted the refactor/remove-ad-script-error-filter branch November 23, 2026 14:16
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.

2 participants