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

diagnosing-stacktrace-symbolication

하는 일

이 스킬은 오류 보고서에 압축되거나 난독화된 코드가 보여 읽을 수 없을 때 도움을 줍니다. PostHog가 읽을 수 있는 파일 이름과 줄 번호를 보여 줘야 하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓오류 보고서에 읽을 수 있는 파일과 줄 번호 대신 압축된 코드 이름이 보일 때.
  • ✓React Native, Android, iOS 오류 스택 트레이스가 다시 읽을 수 있는 코드로 바뀌지 않을 때.
  • ✓소스 맵이나 심볼 파일을 업로드했는데도 오류가 여전히 읽을 수 없을 때.

스킬 링크

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

AI에게 요청하는 예시

“PostHog에서 제 JavaScript 오류가 압축된 코드로 보입니다. 다시 읽을 수 있게 하려면 어떻게 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

빌드 설정, 생성된 심볼 파일, PostHog로의 업로드, 캡처된 오류를 순서대로 확인합니다. 대부분의 문제는 이 네 단계 중 하나에서 나타납니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Diagnosing stack-trace symbolication

Symbolication is the cross-platform name for what JavaScript source-map lookup, Hermes function-offset resolution, Proguard / R8 demangling, and dSYM address-to-line lookup all do — turn a minified or obfuscated frame back into a readable file, function, and line.

Work through the user's build and PostHog symbol sets as one pipeline: build config -> generated symbol artifacts (JavaScript source maps, Hermes maps, Proguard mappings, or dSYM bundles) -> uploaded symbol set in PostHog -> captured error frame. Most failures become obvious once those four pieces are checked in order.

Platforms

Platform Symbol-data type Reference
JavaScript / TypeScript web source-and-map javascript.md
React Native (Hermes) hermes coming soon
Android (Proguard / R8) proguard coming soon
iOS / macOS (dSYM) apple-dsym coming soon

Step 3 of the workflow (symbol-set lookup in PostHog) is identical across platforms — posthog-cli symbol-sets extract handles all four container types. Steps 1, 2, and the platform-specific failure modes live in the per-platform reference.

Workflow

Step 1 - Find how symbol data is produced and uploaded

Look at the app repo's build scripts and PostHog upload config. Confirm which PostHog package handles the upload (@posthog/rollup-plugin, @posthog/webpack-plugin, @posthog/nextjs-config, @posthog/nuxt, or direct posthog-cli) and which directory or asset it processes. See the platform reference for build-tool-specific config inspection.

For debugging, prefer a build where symbol artifacts remain on disk after upload so you can compare local artifacts against what PostHog received. JavaScript example with the Vite plugin (the platform reference covers the equivalent setting for other build tools):

sourcemaps: {
  enabled: true,
  deleteAfterUpload: false,
}

Step 2 - Build and inspect local artifacts

Run the production build that uploads symbols, then inspect the emitted files locally. The exact files and helper invocation differ per platform — see the platform reference for the helper command, expected file shape, and common build-time pitfalls (notably empty-mappings false positives that look like upload bugs but are actually bundler config issues).

If local artifacts already look wrong, fix the build before debugging the PostHog upload.

Step 3 - Check symbol sets in PostHog

Look up the symbol set whose ref matches the captured frame's chunk_id using the dedicated MCP tools — they handle auth, project scoping, and pagination automatically:

  • posthog:error-tracking-symbol-sets-list with ref=<chunk_id> returns the matching row.
  • posthog:error-tracking-symbol-sets-retrieve with the ID returns the same shape (and confirms permissions).
  • posthog:error-tracking-symbol-sets-download-retrieve returns a one-hour presigned URL pointing at the uploaded symbol-data file. Download it immediately; do not echo the URL back unless the user explicitly asks.

If MCP access is not available, the same data is in Project settings > Error tracking > Symbol sets in the PostHog UI.

Interpret the row:

  • ref must match the captured frame chunk_id.
  • last_used updating means PostHog found and loaded that symbol set. It does not guarantee the frame resolved.
  • has_uploaded_file: false means the upload did not complete.
  • A non-null failure_reason means PostHog could not parse or load the uploaded symbol data.

The downloaded file is a PostHog symbol-data container (compressed Rust-encoded payload), not plain JSON. Extract it with posthog-cli:

posthog-cli symbol-sets extract symbolset.bin -o ./extracted
# or, without installing globally:
#   npx @posthog/cli symbol-sets extract symbolset.bin -o ./extracted
#   bunx @posthog/cli symbol-sets extract symbolset.bin -o ./extracted

posthog-cli symbol-sets extract handles all four symbol-set types (source-and-map, hermes, proguard, dSYM) and writes the extracted files into the output directory. Once extracted, summarize using the platform reference's helper.

Step 4 - Compare local, uploaded, and served

자주 묻는 질문

어떤 플랫폼을 다루나요?

웹용 JavaScript와 TypeScript를 자세히 다룹니다. React Native, Android, iOS는 언급되지만 그 가이드는 아직 준비 중입니다.

심볼 세트란 무엇인가요?

컴파일된 코드를 원래 이름과 줄 번호로 되돌리기 위해 PostHog에 업로드하는 파일입니다.

제 플랫폼이 목록에 없으면 어떻게 하나요?

스킬은 다른 플랫폼 가이드가 곧 나온다고 알려 주므로, 일반적인 단계만 받을 수도 있습니다.

상세 정보

작성자의 원본 설명

Help users debug PostHog Error Tracking stack-trace symbolication for any supported platform — JavaScript/TypeScript web, React Native (Hermes), Android (Proguard / R8), or iOS / macOS (dSYM). The PostHog symbol-set lookup flow is universal across platforms; build-tool and artifact details live in per-platform references (JavaScript is fleshed out, others come as we encounter them). Use when stack frames stay minified or obfuscated after symbols are uploaded, PostHog symbol sets show last_used but frames are not readable, chunk IDs or dSYM UUIDs do not match, "Token not found" appears, uploade

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6868
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬