fix(telemetry): DOM Event 拒否の Sentry ノイズを既存 non-Error 族と同様に drop - #378
Merged
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
問題 (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 は「EventEvent(type=error) captured as promise rejection」という別文言を生成し、すり抜ける。族としては instrumentation-client.ts に文書化済みの非アクショナブル・ノイズ (script/リソース読込失敗の promise 化・ウォレット拡張) と同一。変更
/captured as promise rejection/を ignoreErrors へ追加 (実観測コメント付き)検証
typecheck / eslint / full vitest 8703 passed
補足 (任意・未実装):
/faqを landing の FAQ へ誘導する rewrite は今回入れていない (FAQ セクションにアンカー id が無く追加が要るため)。要望があれば別 PR で。🤖 Generated with Claude Code
https://claude.ai/code/session_015CNMEwurCJNTrzvr2qypSd