Skip to content

Filter noisy wallet/extension errors in Sentry#2928

Merged
mgrabina merged 2 commits intomainfrom
chore/sentry-noise-filtering
Apr 9, 2026
Merged

Filter noisy wallet/extension errors in Sentry#2928
mgrabina merged 2 commits intomainfrom
chore/sentry-noise-filtering

Conversation

@mgrabina
Copy link
Copy Markdown
Contributor

@mgrabina mgrabina commented Apr 9, 2026

Summary

  • Add beforeSend filter to sentry.client.config.ts that drops non-actionable errors before they reach Sentry
  • Filter by error message patterns (wallet extensions, WalletConnect, user rejections, RPC noise) and by stack-frame origin (injected scripts from browser extensions)
  • Targets the high-volume error categories identified in the Sentry audit: extension subscription noise, MetaMask/wallet connect failures, injector conflicts, and WalletConnect relay errors

Test plan

  • Deploy to staging and verify Sentry event volume drops
  • Confirm real app errors (e.g. transaction failures, UI crashes) still reach Sentry

Drops errors from browser extensions, wallet injectors, WalletConnect
noise, user rejections, and RPC errors that aren't actionable.
Filters by both error message patterns and stack-frame origin
(culprit-based) to catch generic errors from injected scripts.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
interface Ready Ready Preview, Comment Apr 9, 2026 3:40pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a85b6c5086

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

- Remove overly broad patterns: /origin not allowed/, /jwt validation
  error/, /user denied/, /unknownrpcerror/, /internalrpcerror/,
  /aborterror: signal is aborted/
- Scope "proposal expired" to WalletConnect context
- Scope "user denied" to wallet-specific rejection messages
- Add missing patterns: "missing revert data in call exception",
  "non-error promise rejection captured with value: null"
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 1.15 MB (🟡 +873 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@mgrabina
Copy link
Copy Markdown
Contributor Author

mgrabina commented Apr 9, 2026

@codex

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 1.15 MB (🟡 +858 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@mgrabina mgrabina merged commit 0733461 into main Apr 9, 2026
19 checks passed
@mgrabina mgrabina deleted the chore/sentry-noise-filtering branch April 9, 2026 15:41
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.

3 participants