मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)41k · #6869

grouping-noisy-errors

यह क्या करती है

यह स्किल उन त्रुटि रिपोर्ट को जोड़ती है जो एक ही बग बताती हैं पर कई मुद्दों में बँट गई हैं। यह उन लोगों के लिए है जिनकी त्रुटि सूची लगभग एक जैसी प्रविष्टियों से भरी है।

कब इस्तेमाल करें

  • ✓जब आपके पास कई एक जैसे त्रुटि मुद्दे हों और आप सिर्फ़ एक प्रविष्टि रखना चाहें।
  • ✓जब एक ही त्रुटि मौजूदा मुद्दे से जुड़ने के बजाय बार-बार नए मुद्दे बनाए।
  • ✓जब आपको ऐसे त्रुटि मुद्दे साफ़ करने हों जिनके संदेशों में बदलते ID या फ़ाइल पथ हों।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/grouping-noisy-errors/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे पास दर्जनों TypeError मुद्दे एक जैसे क्यों दिख रहे हैं? कृपया डुप्लिकेट मर्ज कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह पहले जाँचती है कि कौन से मुद्दों का असली कारण एक है, फिर उन्हें एक लक्ष्य में मर्ज करती है। यह समूहन नियम भी सेट करती है, ताकि उसी कोड स्थान से आने वाले भविष्य के इवेंट एक साथ रहें।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल

क्या यह मेरे ऐप के अलग हिस्सों की त्रुटियाँ मर्ज करेगी?

नहीं। अलग कोड पथ, SDK या रनटाइम की त्रुटियाँ अलग रहती हैं, भले ही उनके संदेश मिलते-जुलते लगें।

दो त्रुटियाँ एक जैसी कब मानी जाती हैं?

स्किल केवल वही त्रुटियाँ समूहित करती है जो एक ही मूल कारण से आती हैं, न कि वे जो सिर्फ़ मिलते-जुलते शब्द इस्तेमाल करती हैं।

क्या संदेश के पाठ से मर्ज क्यों न करें?

दो अलग बग में एक जैसा शब्द जैसे undefined हो सकता है, इसलिए केवल पाठ से समूहित करने से असली समस्याएँ छिप जाएँगी।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
41k
रैंकिंग में स्थान
#6869
लाइसेंस
—
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

depot-ci

41k

यह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-container-builds

41k

यह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

depot-github-runners

41k

यह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

editing-agents-md

41k

यह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।

AI और एजेंटएजेंट

मिलती-जुलती skills