Skip to content

fix(sentry): clean up error tracking, add module tags, and improve transaction normalization#17692

Merged
wackerow merged 3 commits into
devfrom
fix/sentry-cleanup
Mar 5, 2026
Merged

fix(sentry): clean up error tracking, add module tags, and improve transaction normalization#17692
wackerow merged 3 commits into
devfrom
fix/sentry-cleanup

Conversation

@pettinarip
Copy link
Copy Markdown
Member

Summary

  • Upgrade Sentry SDK from 10.5.0 → 10.41.0
  • Add Sentry reporting to locale error boundaryapp/[locale]/error.tsx was only logging to console (the primary error boundary for all pages)
  • Add module tags to separate app vs data-layer errors in Sentry dashboard
  • Consolidate data-layer error capture into tasks.onFailure (removed duplicate handler from trigger.config.ts)
  • Fix transaction normalization — homepage visits from different locales (/pt-br/, /ko/, etc.) now group under / instead of appearing as separate entries
  • Filter extension/third-party noise — ~95% of current Sentry events are non-actionable (wallet extensions, WebView injections, ad blocker side effects). New filters for:
    • No-stacktrace JSON-RPC errors from wallet extensions (ETHORG-7Q, 1779 events)
    • Extension runtime.sendMessage variant (ETHORG-7E, 205 events)
    • Netlify RUM fetch rejections (ETHORG-8N, 476 events)
    • Extension IPC/DApp bridge errors (ETHORG-FN, ETHORG-AT)
    • Cross-origin postMessage errors (ETHORG-87, 314 events)
    • Injected globals from WebViews and adware (ETHORG-14R, ETHORG-13N, ETHORG-JK, ETHORG-14B)
  • Fix beforeSend to check all exception values in the chain, not just the first

Test plan

  • Verify Sentry events are received in production with module:app tag
  • Verify data-layer task failures appear with module:data-layer tag
  • Confirm homepage pageloads from different locales group under / in Sentry Insights
  • Monitor error volume after deploy — expect significant drop from filtered noise

- Report errors from locale error boundary to Sentry (was console-only)
- Add module tags to separate app vs data-layer errors in Sentry
- Consolidate data-layer error capture in tasks.onFailure
- Upgrade @sentry/nextjs from 10.5.0 to 10.41.0
Previously only parameterized routes were normalized, so homepage
visits from different locales (/pt-br/, /ko/, etc.) appeared as
separate entries instead of grouping under /. Now all page
transactions are normalized, and parameterized fallback names
like /:locale/:slug* are also cleaned up.
- Filter no-stacktrace JSON-RPC errors from wallet extensions (ETHORG-7Q)
- Filter runtime.sendMessage tab-not-found variant (ETHORG-7E)
- Filter Netlify RUM fetch rejections blocked by ad blockers (ETHORG-8N)
- Filter extension IPC/DApp bridge errors (ETHORG-FN, ETHORG-AT)
- Filter cross-origin postMessage errors (ETHORG-87)
- Filter injected globals from WebViews and adware (ETHORG-14R, ETHORG-13N, ETHORG-JK, ETHORG-14B)
- Also fix beforeSend to check all exception values, not just the first
@github-actions github-actions Bot added the dependencies 📦 Changes related to project dependencies label Mar 2, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 2, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit feae150
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69a5abdb6deae300083d0509
😎 Deploy Preview https://deploy-preview-17692.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 58 (🔴 down 2 from production)
Accessibility: 94 (🟢 up 1 from production)
Best Practices: 100 (no change from production)
SEO: 99 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread trigger.config.ts
} as Parameters<typeof Sentry.init>[0])
},
// Automatically capture and report task failures to Sentry
onFailure: async ({ payload, error, ctx }) => {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was never reached. Moved this to tasks.onFailure in tasks.ts

@wackerow wackerow merged commit d103b0f into dev Mar 5, 2026
10 checks passed
@wackerow wackerow deleted the fix/sentry-cleanup branch March 5, 2026 17:23
@wackerow wackerow mentioned this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies 📦 Changes related to project dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants