Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)41k Β· #6872

suppressing-noisy-errors

Fungsinya

Skill ini membuat aturan yang menghentikan PostHog mencatat error yang tidak dapat Anda perbaiki, seperti error yang disebabkan oleh ekstensi browser atau bot. Ditujukan untuk tim yang ingin mengurangi kebisingan dan menekan biaya.

Kapan dipakai

  • βœ“Saat error dari ekstensi browser memenuhi daftar error Anda dan tidak dapat Anda perbaiki.
  • βœ“Saat lalu lintas bot atau crawler membuat banyak laporan error yang tidak berguna.
  • βœ“Saat sebuah error tidak berbahaya tetapi sangat sering terjadi, dan Anda ingin menekan biayanya tanpa kehilangan visibilitas sepenuhnya.

Link skill

https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/suppressing-noisy-errors/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/suppressing-noisy-errors/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBerhenti mencatat error ResizeObserver loop dan error yang berasal dari ekstensi browser.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menemukan error yang bising, lalu menulis filter yang sempit yang hanya membuang event yang cocok sebelum menjadi isu. Untuk error yang sering terjadi tetapi tetap berguna, skill dapat menurunkan laju sampling sebagai gantinya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 captured with 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_rate instead 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 archived or resolved instead 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, low users ratio (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

Pertanyaan umum

Apakah penekanan dapat menyembunyikan bug nyata?

Ya, jika filternya terlalu luas. Skill menjaga filter tetap sempit agar error yang tidak terkait tidak ikut terbuang.

Apakah ada cara menyembunyikan error tanpa membuangnya?

Ada. Mengarsipkan atau menyelesaikan isu membuatnya tetap terlihat jika muncul kembali, dan mengubah penerima tugas atau notifikasi hanya mengubah siapa yang diberi tahu.

Apa itu sampling?

Sampling hanya mencatat sebagian dari event yang cocok, sehingga Anda tetap memiliki visibilitas dengan biaya yang lebih rendah.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
41k
Peringkat
#6872
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa