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

diagnosing-missing-recordings

하는 일

이 스킬은 특정 세션에 리플레이가 없는 이유나 프로젝트에 녹화가 전혀 보이지 않는 이유를 조사합니다. 세션 녹화에 빈틈이 보이는 개발자와 제품 팀을 위한 것입니다.

사용하는 경우

  • ✓특정 세션에 리플레이가 없고 이유를 알고 싶을 때.
  • ✓프로젝트에 녹화가 전혀 나타나지 않을 때.
  • ✓광고 차단기나 샘플링 설정이 녹화를 막는다고 의심될 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/replay/skills/diagnosing-missing-recordings/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“이 사용자의 세션에 녹화가 없는 이유는 무엇인가요? 원인을 확인해 주세요.”

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

작동 방식

세션 이벤트의 SDK 진단 속성을 읽고, 예를 들어 녹화 상태와 트리거 상태를 확인한 뒤 프로젝트 설정을 점검합니다. 그다음 가장 가능성 높은 원인을 짚습니다.

기술 내용 (원본 SKILL.md)

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

Diagnosing missing session recordings

When a user asks "why wasn't this session recorded?" or "why don't I have any recordings?", follow this workflow to systematically diagnose the cause.

Available tools

Tool Purpose
posthog:execute-sql Query session event properties for diagnostic signals
posthog:session-recording-get Check if a recording actually exists for the session
posthog:query-session-recordings-list Search for recordings matching criteria

Diagnostic signals

The PostHog SDK emits diagnostic properties on every event that explain the recording state. See the diagnostic signals reference for the full list.

The key signals are:

  • $has_recording — whether PostHog has a stored recording for this session
  • $recording_status — SDK state: active, buffering, disabled, sampled, paused
  • $session_recording_start_reason — why recording started or didn't
  • $sdk_debug_recording_script_not_loaded — recorder script blocked (ad blocker)
  • $sdk_debug_replay_*_trigger_status — trigger states (URL, event, linked flag)
  • $replay_sample_rate — configured sample rate at capture time

Workflow

Step 1 — Check if the recording exists

If the user provides a session ID, first check whether a recording actually exists:

posthog:session-recording-get
{
  "id": "<session_id>"
}

If it returns found: false with reason recording_not_found, no recording exists for this session in the active project. Proceed to Step 2 to diagnose why. If it returns recording metadata, the recording exists — the issue is likely UI/filtering, not capture. Any other error (for example, a missing project or a permission error) is not evidence about the recording. Fix that error first.

Step 2 — Query diagnostic signals from events

Query the most recent event for the session to get SDK diagnostic properties:

posthog:execute-sql
SELECT
    properties.$has_recording AS has_recording,
    properties.$recording_status AS recording_status,
    properties.$session_recording_start_reason AS start_reason,
    properties.$sdk_debug_recording_script_not_loaded AS script_not_loaded,
    properties.$sdk_debug_replay_url_trigger_status AS url_trigger,
    properties.$sdk_debug_replay_event_trigger_status AS event_trigger,
    properties.$sdk_debug_replay_linked_flag_trigger_status AS flag_trigger,
    properties.$replay_sample_rate AS sample_rate,
    properties.$sdk_debug_replay_internal_buffer_length AS buffer_length,
    properties.$sdk_debug_replay_flushed_size AS flushed_size,
    properties.$lib AS sdk_library,
    properties.$lib_version AS sdk_version
FROM events
WHERE $session_id = '<session_id>'
ORDER BY timestamp DESC
LIMIT 1

Step 3 — Diagnose the verdict

Use the diagnosis logic reference to interpret the signals. The verdicts in priority order:

  1. Recording exists ($has_recording = true) — recording is captured, issue is elsewhere
  2. Ad blocked (script) ($sdk_debug_recording_script_not_loaded = true) — browser extension blocking the recorder script from loading
  3. Disabled ($recording_status = 'disabled') — replay turned off in settings or SDK config
  4. Trigger pending (trigger statuses are trigger_pending, none matched) — recording gated on trigger that never fired
  5. Sampled out ($session_recording_start_reason = 'sampled_out') — excluded by sample rate
  6. Buffering empty ($recording_status = 'buffering', buffer length = 0, nothing flushed) — initialized but no snapshots produced
  7. Flush blocked (buffer length climbs across events while flushed_size stays at 0) — snapshots are produced but the /s/ ingestion endpoint is blocked by an ad blocker or misconfigured reverse proxy. Detecting this requires querying the trend across the session's events — see example 3 in examples.md
  8. Unknown — signals don't match a known pattern

Step 4 — Check project-level settings (if no session ID)

When the user asks about recordings missing project-wide (no specific session), query for recent sessions to check the pattern:

posthog:execute-sql
SELECT
    $session_id,
    properties.$recordi
자주 묻는 질문

진단 신호란 무엇인가요?

PostHog SDK가 녹화가 시작되었는지, 샘플링되었는지, 차단되었는지 알려 주려고 이벤트에 추가하는 속성입니다.

광고 차단기가 녹화를 막을 수 있나요?

네. 레코더 스크립트가 차단될 수 있으며, 스킬은 그 신호를 찾습니다.

요금이나 할당량도 확인하나요?

네. 할당량과 청구 사례도 가능한 원인 중 하나로 확인합니다.

상세 정보

작성자의 원본 설명

Diagnoses why a session recording is missing or was not captured. Use when a user asks why a session has no replay, why recordings aren't appearing, or wants to troubleshoot session replay capture issues for a specific session ID or across their project. Covers SDK diagnostic signals, project settings, sampling, triggers, ad blockers, and quota/billing scenarios.

repo: PostHog/posthog

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬