Skip to content

fix(telemetry): DOM Event 拒否の Sentry ノイズを既存 non-Error 族と同様に drop - #378

Merged
cipherwebllc merged 1 commit into
mainfrom
fix/sentry-event-rejection-noise
Aug 18, 2026
Merged

fix(telemetry): DOM Event 拒否の Sentry ノイズを既存 non-Error 族と同様に drop#378
cipherwebllc merged 1 commit into
mainfrom
fix/sentry-event-rejection-noise

Conversation

@cipherwebllc

Copy link
Copy Markdown
Owner

問題 (Sentry ID 4441ed4b…・2026-08-18 mainnet)

存在しない /en/faq ([handle] catch-all の 404・transaction が /:locale/:handle なのはこのため) 上で、DOM Event (type=error) を理由とする unhandled promise rejection が 1 件捕捉された。スタックなし・handled=No・UA は Chrome 123 (2 年以上前・bot 型)。リリース 8894d42 直後だが #377 は builder 側のみで公開 handle ページ非接触 — 因果なし。

原因

既存の ignoreErrors は「Non-Error promise rejection captured…」の文言で drop しているが、拒否理由が DOM Event のとき Sentry は「Event Event (type=error) captured as promise rejection」という別文言を生成し、すり抜ける。族としては instrumentation-client.ts に文書化済みの非アクショナブル・ノイズ (script/リソース読込失敗の promise 化・ウォレット拡張) と同一。

変更

  • /captured as promise rejection/ を ignoreErrors へ追加 (実観測コメント付き)
  • 自前コードは Error 以外で reject しないため実シグナルの取りこぼしなし
  • フェンス: 両文言が drop・自前 Error 文言は非 drop をテストで固定

検証

typecheck / eslint / full vitest 8703 passed

補足 (任意・未実装): /faq を landing の FAQ へ誘導する rewrite は今回入れていない (FAQ セクションにアンカー id が無く追加が要るため)。要望があれば別 PR で。

🤖 Generated with Claude Code

https://claude.ai/code/session_015CNMEwurCJNTrzvr2qypSd

2026-08-18 mainnet 実観測 (ID 4441ed4b…): 存在しない /en/faq ([handle] catch-all
の 404) 上で、DOM Event (type=error) を理由とする unhandled rejection が
「Event `Event` (type=error) captured as promise rejection」として捕捉された。
既存フィルタは「Non-Error promise rejection captured…」の文言だけを見ており、
拒否理由が DOM Event のときの別文言をすり抜けていた。

- 同族 (script/リソース読込失敗の promise 化・ウォレット拡張由来・スタックなし・
  非アクショナブル) なので /captured as promise rejection/ を ignoreErrors へ追加
- 自前コードは Error 以外で reject しないため実シグナルの取りこぼしなし
- フェンス: 両文言が drop され自前 Error 文言は drop されないことをテストで固定

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015CNMEwurCJNTrzvr2qypSd
@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openpay Ignored Ignored Preview Aug 18, 2026 7:03am

Request Review

@cipherwebllc
cipherwebllc merged commit 3d311e0 into main Aug 18, 2026
6 checks passed
@cipherwebllc
cipherwebllc deleted the fix/sentry-event-rejection-noise branch August 18, 2026 07:26
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.

1 participant