diagnosing-missing-recordings
यह क्या करती है
यह स्किल जाँचती है कि कोई सेशन रीप्ले क्यों नहीं बना, या कोई रिकॉर्डिंग दिखती क्यों नहीं। यह उन डेवलपर्स और प्रोडक्ट टीमों के लिए है जिन्हें अपनी सेशन रिकॉर्डिंग में खाली जगहें दिखती हैं।
कब इस्तेमाल करें
- ✓जब कोई खास सेशन का रीप्ले न हो और आप कारण जानना चाहें।
- ✓जब आपके प्रोजेक्ट में कोई भी रिकॉर्डिंग दिखाई न दे रही हो।
- ✓जब आपको शक हो कि कोई ऐड ब्लॉकर या सैंपलिंग सेटिंग रिकॉर्डिंग रोक रही है।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/replay/skills/diagnosing-missing-recordings/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस उपयोगकर्ता के सेशन की कोई रिकॉर्डिंग क्यों नहीं है? इसका कारण जाँचिए।”
हर हफ़्ते 5 नई skills, 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:
- Recording exists (
$has_recording = true) — recording is captured, issue is elsewhere - Ad blocked (script) (
$sdk_debug_recording_script_not_loaded = true) — browser extension blocking the recorder script from loading - Disabled (
$recording_status = 'disabled') — replay turned off in settings or SDK config - Trigger pending (trigger statuses are
trigger_pending, none matched) — recording gated on trigger that never fired - Sampled out (
$session_recording_start_reason = 'sampled_out') — excluded by sample rate - Buffering empty (
$recording_status = 'buffering', buffer length = 0, nothing flushed) — initialized but no snapshots produced - Flush blocked (buffer length climbs across events while
flushed_sizestays 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 - 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
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।