Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)41k · #6869

grouping-noisy-errors

Ce qu’il fait

Cette skill combine des rapports d'erreur qui décrivent le même bug mais ont été éclatés en plusieurs tickets. Elle s'adresse aux personnes dont la liste d'erreurs est encombrée d'entrées presque identiques.

Quand l’utiliser

  • ✓Quand vous avez de nombreux tickets d'erreur qui se ressemblent et voulez n'en garder qu'un seul.
  • ✓Quand la même erreur crée sans cesse de nouveaux tickets au lieu de rejoindre un ticket existant.
  • ✓Quand vous devez nettoyer des tickets d'erreur dont les messages contiennent des identifiants ou des chemins de fichiers changeants.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/grouping-noisy-errors/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Pourquoi ai-je des dizaines de tickets TypeError qui se ressemblent ? Fusionne les doublons, s'il te plaît.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La skill vérifie d'abord quels tickets ont réellement la même cause, puis les fusionne en une seule cible. Elle définit aussi une règle de regroupement pour que les futurs événements du même emplacement de code restent ensemble.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Grouping noisy errors

The same error can be reported as dozens of separate issues when stack frames or messages contain volatile data — random IDs, dynamic file paths, build hashes, anonymous function names. The fix is two-step: merge the existing issues into one target, then create a grouping rule so future events from the same call site share a single canonical fingerprint instead of spawning new ones.

Important up front: "same error" here is narrow. Two issues that share a name or a sentence of message text but came from different code paths, different SDKs, or different runtimes are different errors and should stay separate, even if the user thinks of them as "the same kind of bug". Grouping a frontend TypeError together with a backend TypeError because both messages contain "undefined" destroys the signal that lets the team find each one. The criteria in step 1 exist to keep that from happening.

Available tools

Tool Purpose
posthog:query-error-tracking-issues-list Find candidate duplicate issues
posthog:query-error-tracking-issue Pull compact details for an individual issue
posthog:query-error-tracking-issue-events Sampled $exception events with stack and message
posthog:error-tracking-issues-merge-create Merge existing issues into a target
posthog:error-tracking-issues-split-create Surgically split fingerprints back out if a merge errs
posthog:error-tracking-grouping-rules-create Auto-group future events into one issue
posthog:error-tracking-grouping-rules-list Check existing grouping rules before adding new ones
posthog:error-tracking-issues-partial-update Rename or re-describe the target after a merge

Merge vs grouping rule

The two tools solve different halves of the problem:

  • Merge is one-shot. It collapses existing issues into a target and re-attaches their events. Future events still group by their original fingerprints — if the same noisy pattern keeps producing new fingerprints, merging is a treadmill.
  • Grouping rule is durable. It rewrites the fingerprint of any matching event to custom-rule:<rule_id> at ingestion time, so all future matches share one canonical fingerprint rather than spawning new ones. The first match either creates a new issue keyed off that fingerprint, or routes to whatever issue is already bound to it.

Use both together when the issue is recurring: merge historical duplicates into a target issue, then create the rule. The rule API does not accept a target issue ID — once the rule starts firing, the resulting custom-rule:... issue can be merged into the same target so the consolidation sticks. Use merge alone for historical sprawl that you don't expect to recur. Use a grouping rule alone for a brand-new pattern you're getting ahead of, when you don't need to consolidate with an existing issue.

Workflow

Step 1 — Confirm the duplicates

Search by exception type or message to find candidates:

posthog:query-error-tracking-issues-list
{
  "searchQuery": "TypeError: Cannot read property",
  "status": "active",
  "limit": 50,
  "orderBy": "occurrences",
  "dateRange": { "date_from": "-30d" }
}

For each candidate, pull one sampled exception event to compare stack, type, and message:

posthog:query-error-tracking-issue-events
{
  "issueId": "<candidate_issue_id>",
  "limit": 1,
  "include": ["exception", "stacktrace", "environment"]
}

Run this once per candidate. The tool defaults to onlyAppFrames: true, which makes the top in-app frame stand out at a glance. If two candidates share the same top frame and same exception type, they're likely the same error — but verify against the full checklist below before merging.

Are they the same error?

Treat two issues as duplicates only when every one of these matches:

  • $lib is the same SDK. The browser/JS SDK captures $lib as web (not posthog-js); server SDKs use posthog-python, posthog-node, etc. Confirm the exact value with read-data-schema (event_property_values for $lib on $exception) rather than assuming — a wrong value silently matches nothing. Erro
Questions fréquentes

Va-t-elle fusionner des erreurs de parties différentes de mon application ?

Non. Les erreurs de chemins de code, de SDK ou d'environnements d'exécution différents restent séparées, même si leurs messages se ressemblent.

Qu'est-ce qui rend deux erreurs identiques ?

La skill ne regroupe que les erreurs qui ont la même cause sous-jacente, et non celles qui utilisent simplement des formulations proches.

Pourquoi ne pas fusionner simplement sur le texte du message ?

Deux bugs différents peuvent partager un mot commun comme undefined. Regrouper uniquement par texte masquerait donc de vrais problèmes.

Détails

Description originale de l’auteur

Consolidate PostHog error tracking issues that are the same actual error reported under different fingerprints. Use when the user asks "why do I have so many TypeError issues that look the same?", "merge these duplicates", "stop splitting this error into new issues", or wants to clean up fingerprint sprawl. Decides between a one-shot merge of existing issues and a durable grouping rule that keeps future events from creating new fingerprints. Does NOT group conceptually similar bugs across different runtimes, SDKs, or call sites.

repo: PostHog/posthog

Popularité

Étoiles GitHub
41k
Position au classement
#6869
Licence
—
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires