suppressing-noisy-errors
できること
このスキルは、ブラウザ拡張機能やボットが原因で修正できないエラーを、PostHogが記録しないようにするルールを作ります。ノイズとコストを減らしたいチーム向けです。
使う場面
- ✓ブラウザ拡張機能のエラーで、修正できないエラーの一覧が埋まっているとき。
- ✓ボットやクローラーのトラフィックが、役に立たないエラーの報告を大量に作っているとき。
- ✓無害だが非常に頻繁なエラーについて、すべての可視性を失わずにコストを下げたいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/suppressing-noisy-errors/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ResizeObserverループのエラーと、ブラウザ拡張機能から来るエラーは記録しないようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
ノイズの多いエラーを見つけ、課題になる前に一致するイベントだけを除外する狭いフィルターを書きます。頻度は高いが有用なエラーには、代わりにサンプリング率を下げることもできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Suppressing noisy errors
Suppression is destructive in spirit: matching events are dropped at ingestion and never become issues. The wrong rule silently throws away real bugs. This skill exists to make sure suppression is applied only to patterns that are genuinely unactionable, with filters narrow enough to avoid swallowing unrelated errors.
When suppression is the right tool
Suppression is the right tool when an error is:
- Unactionable from your code — browser extensions, third-party scripts, ad blockers, network beacons firing after navigation. You can't fix it because you didn't write it.
- Browser engine quirks —
ResizeObserver loop limit exceeded,Script error.,Non-Error promise rejection capturedwith empty payloads. - Bot or crawler traffic — errors firing only from headless browsers or known crawler user agents.
- Sampling already enough — for high-volume but real errors, dampen with
sampling_rateinstead of full suppression so you keep visibility without paying full cost.
Suppression is not the right tool when:
- The error is unactionable today but might become actionable after a fix —
use issue status
archivedorresolvedinstead so it surfaces if it returns. - You only want to mute notifications — assign the issue to a user, change its status, or use notification rules.
- The error is a duplicate of another — merge or create a grouping rule
(
grouping-noisy-errors).
Available tools
| Tool | Purpose |
|---|---|
posthog:query-error-tracking-issues-list |
Find suppression candidates by volume and impact; dry-run a candidate filter via filterGroup |
posthog:query-error-tracking-issue-events |
Inspect sampled $exception events to confirm the pattern |
posthog:execute-sql |
Fallback dry-run for filters that need OR groups or operators outside the filterGroup allowed list |
posthog:error-tracking-suppression-rules-list |
Check existing suppression rules |
posthog:error-tracking-suppression-rules-create |
Create the suppression rule |
posthog:error-tracking-issues-partial-update |
Hide past data via issue status without dropping events at ingestion |
Workflow
Step 1 — Identify candidates
High occurrences with low distinct users is the strongest noise signal — one user (or one bot) producing many events.
posthog:query-error-tracking-issues-list
{
"status": "active",
"orderBy": "occurrences",
"orderDirection": "DESC",
"dateRange": { "date_from": "-7d" },
"limit": 30,
"volumeResolution": 0
}
Look for:
- High
occurrences, lowusersratio (e.g., 50,000 occurrences, 3 users → likely bot or extension loop) - Exception messages matching known noise patterns:
ResizeObserver loop,Script error., extension namespaces (chrome-extension://,moz-extension://,safari-extension://) - Stack traces dominated by third-party domains the user doesn't control
Step 2 — Confirm the pattern
For each candidate, pull a sample of $exception events and check that the
pattern matches what you intend to suppress:
posthog:query-error-tracking-issue-events
{
"issueId": "<candidate_issue_id>",
"limit": 10,
"include": ["exception", "stacktrace", "environment", "navigation"]
}
onlyAppFrames defaults to true, but for noise investigation you usually
want the third-party frames visible — pass onlyAppFrames: false so extension
URLs and vendor domains show up in the stack.
Confirm:
- The exception type or message text is consistent across the sample
- The URLs / user agents / browsers don't include real user traffic mixed in with the noise
- Suppressing this pattern won't hide a future real bug that happens to share the type
If any sample doesn't match, narrow the filter or skip the candidate.
Step 3 — Scope the filter tightly
Suppression rules are configured with the same filter shape as grouping rules. The `e
よくある質問
除外によって本物のバグが隠れることはありますか?
はい。フィルターが広すぎると起こりえます。そのため、スキルは無関係なエラーが除外されないよう、フィルターを絞ります。
エラーを除外せずに隠す方法はありますか?
あります。課題をアーカイブまたは解決済みにすると、再発した場合に見えるままになります。担当者や通知の変更は、誰に知らせるかだけを変えます。
サンプリングとは何ですか?
一致するイベントの一部だけを記録する方法です。ある程度の可視性を保ちつつ、支払うコストを減らせます。
詳細
作者による元の説明
Create PostHog error tracking suppression rules to drop high-volume, low-value errors at ingestion. Use when the user asks "stop capturing this error", "drop browser extension errors", "ignore ResizeObserver loops", "suppress bot-driven errors", or wants to reduce ingestion cost from noisy unactionable errors. Identifies suppression candidates, scopes the filter tightly, decides between full suppression and sampling, and confirms the rule before creating it. Suppressed errors are dropped permanently — this skill defaults to caution.
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6872
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
depot-ci
41kエージェントが、GitHub Actionsの代替であるDepot CIのワークフローを設定し実行できるよう支援します。既存のワークフローの移行や、実行ログの確認も含みます。
depot-container-builds
41kエージェントが、Depotのリモート・ビルダーでDockerイメージを作れるよう支援します。マルチプラットフォームのイメージ、レジストリへのプッシュ、ビルド失敗の修正を含みます。
depot-github-runners
41kエージェントが、GitHub Actionsのジョブを Depot が管理するランナーに移し、ランナーのサイズとラベルを選び、ランナー設定の問題を解決できるよう支援します。
editing-agents-md
41kエージェントが、AGENTS.mdとCLAUDE.mdのどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。