본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)41k · #6869

grouping-noisy-errors

하는 일

이 스킬은 같은 버그를 설명하지만 여러 이슈로 나뉜 오류 보고서를 합칩니다. 거의 같은 항목으로 오류 목록이 어수선한 사람을 위한 것입니다.

사용하는 경우

  • ✓같아 보이는 오류 이슈가 많아서 하나만 남기고 싶을 때.
  • ✓같은 오류가 기존 이슈에 들어가지 않고 계속 새 이슈를 만들 때.
  • ✓메시지에 바뀌는 ID나 파일 경로가 있는 오류 이슈를 정리해야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/error_tracking/skills/grouping-noisy-errors/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“TypeError 이슈가 수십 개 있는데 모두 똑같아 보입니다. 중복을 병합해 주세요.”

매주 새 스킬 5개. 읽는 데 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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬