Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)41k Β· #6906

diagnosing-missing-recordings

Fungsinya

Skill ini menyelidiki mengapa sebuah sesi tidak mendapatkan replay, atau mengapa tidak ada rekaman yang muncul. Ditujukan untuk pengembang dan tim produk yang melihat celah pada rekaman sesi mereka.

Kapan dipakai

  • βœ“Saat sesi tertentu tidak memiliki replay dan Anda ingin tahu alasannya.
  • βœ“Saat tidak ada rekaman yang muncul sama sekali di proyek Anda.
  • βœ“Saat Anda curiga ad blocker atau pengaturan sampling menghentikan rekaman.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/PostHog/posthog/blob/master/products/replay/skills/diagnosing-missing-recordings/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œMengapa sesi pengguna ini tidak memiliki rekaman? Tolong cek penyebabnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill membaca properti diagnostik SDK pada event sesi, seperti status rekaman dan status pemicu, lalu memeriksa pengaturan proyek. Setelah itu, skill menunjukkan penyebab yang paling mungkin.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Apa itu sinyal diagnostik?

Itu adalah properti yang ditambahkan SDK PostHog ke event untuk menyatakan apakah rekaman dimulai, di-sampling, atau diblokir.

Bisakah ad blocker menghentikan rekaman?

Bisa. Skrip perekam dapat diblokir, dan skill mencari sinyal tersebut.

Apakah skill memeriksa tagihan atau kuota?

Ya. Kasus kuota dan tagihan termasuk penyebab yang diperiksa.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
41k
Peringkat
#6906
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa