Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(taxonomy): add mobile session replay debug properties (#103925)

Ioannis Jd213cfd69402
diff --git a/frontend/src/taxonomy/core-filter-definitions-by-group.json b/frontend/src/taxonomy/core-filter-definitions-by-group.json
index cfb338227aaa..177ad2535a96 100644
--- a/frontend/src/taxonomy/core-filter-definitions-by-group.json
+++ b/frontend/src/taxonomy/core-filter-definitions-by-group.json
@@ -2887,11 +2887,31 @@
"type": "Numeric",
"used_for_debug": true
},
+ "$sdk_debug_pending_queue_size": {
+ "description": "Useful for debugging. The depth of the mobile SDK's single disk-backed event queue, which handles both normal batching and retry backoff. Mobile SDKs report this instead of the retry queue size.",
+ "examples": [
+ "100"
+ ],
+ "ignored_in_assistant": true,
+ "label": "Pending queue size",
+ "system": true,
+ "used_for_debug": true
+ },
"$sdk_debug_recording_script_not_loaded": {
"description": "Recording script not loaded. This can be caused by ad blockers.",
"label": "Recording script not loaded",
"used_for_debug": true
},
+ "$sdk_debug_replay_capture_mode": {
+ "description": "How the mobile SDK captures the screen for session replay.",
+ "examples": [
+ "screenshot",
+ "wireframe"
+ ],
+ "label": "Replay capture mode",
+ "type": "String",
+ "used_for_debug": true
+ },
"$sdk_debug_replay_event_trigger_status": {
"description": "The status of the recording event trigger.",
"examples": [
@@ -2903,6 +2923,18 @@
"type": "String",
"used_for_debug": true
},
+ "$sdk_debug_replay_flush_hold_reason": {
+ "description": "Why session replay is holding its buffer instead of flushing. Mobile SDKs attach it only while the recording status is buffering.",
+ "examples": [
+ "awaiting_remote_config",
+ "below_minimum_duration",
+ "no_interaction_since_recording_started",
+ "no_interaction_since_session_rotated"
+ ],
+ "label": "Replay flush hold reason",
+ "type": "String",
+ "used_for_debug": true
+ },
"$sdk_debug_replay_flushed_size": {
"description": "Estimated size in bytes of flushed recording data so far in this session. Added to events as a debug property.",
"label": "Estimated bytes flushed",
@@ -2950,6 +2982,11 @@
"label": "Matched recording trigger groups",
"used_for_debug": true
},
+ "$sdk_debug_replay_pending_trigger_conditions": {
+ "description": "The configured recording trigger conditions that are not yet satisfied, such as a linked flag or an event trigger.",
+ "label": "Replay pending trigger conditions",
+ "used_for_debug": true
+ },
"$sdk_debug_replay_remote_trigger_matching_config": {
"description": "Whether to match on all or any triggers.",
"examples": [
@@ -2965,6 +3002,15 @@
"label": "Replay rrweb error",
"used_for_debug": true
},
+ "$sdk_debug_replay_throttle_delay_ms": {
+ "description": "The configured session replay throttle delay in milliseconds on mobile SDKs.",
+ "examples": [
+ 1000
+ ],
+ "label": "Replay throttle delay (ms)",
+ "type": "Numeric",
+ "used_for_debug": true
+ },
"$sdk_debug_replay_trigger_groups_count": {
"description": "The number of V2 recording trigger groups configured for this project.",
"examples": [
@@ -8144,11 +8190,31 @@
"type": "Numeric",
"used_for_debug": true
},
+ "$sdk_debug_pending_queue_size": {
+ "description": "Useful for debugging. The depth of the mobile SDK's single disk-backed event queue, which handles both normal batching and retry backoff. Mobile SDKs report this instead of the retry queue size.",
+ "examples": [
+ "100"
+ ],
+ "ignored_in_assistant": true,
+ "label": "Pending queue size",
+ "system": true,
+ "used_for_debug": true
+ },
"$sdk_debug_recording_script_not_loaded": {
"description": "Recording script not loaded. This can be caused by ad blockers.",
"label": "Recording script not loaded",
"used_for_debug": true
},
+ "$sdk_debug_replay_capture_mode": {
+ "description": "How the mobile SDK captures the screen for session replay.",
+ "examples": [
+ "screenshot",
+ "wireframe"
+ ],
+ "label": "Replay capture mode",
+ "type": "String",
+ "used_for_debug": true
+ },
"$sdk_debug_replay_event_trigger_status": {
"description": "The status of the recording event trigger.",
"examples": [
@@ -8160,6 +8226,18 @@
"type": "String",
"used_for_debug": true
},
+ "$sdk_debug_replay_flush_hold_reason": {
+ "description": "Why session replay is holding its buffer instead of flushing. Mobile SDKs attach it only while the recording status is buffering.",
+ "examples": [
+ "awaiting_remote_config",
+ "below_minimum_duration",
+ "no_interaction_since_recording_started",
+ "no_interaction_since_session_rotated"
+ ],
+ "label": "Replay flush hold reason",
+ "type": "String",
+ "used_for_debug": true
+ },
"$sdk_debug_replay_flushed_size": {
"description": "Estimated size in bytes of flushed recording data so far in this session. Added to events as a debug property.",
"label": "Estimated bytes flushed",
@@ -8207,6 +8285,11 @@
"label": "Matched recording trigger groups",
"used_for_debug": true
},
+ "$sdk_debug_replay_pending_trigger_conditions": {
+ "description": "The configured recording trigger conditions that are not yet satisfied, such as a linked flag or an event trigger.",
+ "label": "Replay pending trigger conditions",
+ "used_for_debug": true
+ },
"$sdk_debug_replay_remote_trigger_matching_config": {
"description": "Whether to match on all or any triggers.",
"examples": [
@@ -8222,6 +8305,15 @@
"label": "Replay rrweb error",
"used_for_debug": true
},
+ "$sdk_debug_replay_throttle_delay_ms": {
+ "description": "The configured session replay throttle delay in milliseconds on mobile SDKs.",
+ "examples": [
+ 1000
+ ],
+ "label": "Replay throttle delay (ms)",
+ "type": "Numeric",
+ "used_for_debug": true
+ },
"$sdk_debug_replay_trigger_groups_count": {
"description": "The number of V2 recording trigger groups configured for this project.",
"examples": [
diff --git a/posthog/taxonomy/taxonomy.py b/posthog/taxonomy/taxonomy.py
index f69c274687fb..87224dc602ad 100644
--- a/posthog/taxonomy/taxonomy.py
+++ b/posthog/taxonomy/taxonomy.py
@@ -854,6 +854,45 @@ CORE_FILTER_DEFINITIONS_BY_GROUP: dict[str, dict[str, CoreFilterDefinition]] = {
"ignored_in_assistant": True,
"used_for_debug": True,
},
+ "$sdk_debug_pending_queue_size": {
+ "label": "Pending queue size",
+ "description": "Useful for debugging. The depth of the mobile SDK's single disk-backed event queue, which handles both normal batching and retry backoff. Mobile SDKs report this instead of the retry queue size.",
+ "examples": ["100"],
+ "system": True,
+ "ignored_in_assistant": True,
+ "used_for_debug": True,
+ },
+ "$sdk_debug_replay_flush_hold_reason": {
+ "label": "Replay flush hold reason",
+ "description": "Why session replay is holding its buffer instead of flushing. Mobile SDKs attach it only while the recording status is buffering.",
+ "examples": [
+ "awaiting_remote_config",
+ "below_minimum_duration",
+ "no_interaction_since_recording_started",
+ "no_interaction_since_session_rotated",
+ ],
+ "type": "String",
+ "used_for_debug": True,
+ },
+ "$sdk_debug_replay_capture_mode": {
+ "label": "Replay capture mode",
+ "description": "How the mobile SDK captures the screen for session replay.",
+ "examples": ["screenshot", "wireframe"],
+ "type": "String",
+ "used_for_debug": True,
+ },
+ "$sdk_debug_replay_throttle_delay_ms": {
+ "label": "Replay throttle delay (ms)",
+ "description": "The configured session replay throttle delay in milliseconds on mobile SDKs.",
+ "examples": [1000],
+ "type": "Numeric",
+ "used_for_debug": True,
+ },
+ "$sdk_debug_replay_pending_trigger_conditions": {
+ "label": "Replay pending trigger conditions",
+ "description": "The configured recording trigger conditions that are not yet satisfied, such as a linked flag or an event trigger.",
+ "used_for_debug": True,
+ },
"$last_posthog_reset": {
"label": "Timestamp of last call to `Reset` in the web sdk",
"description": "The timestamp of the last call to `Reset` in the web SDK. This can be useful for debugging.",