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.

fix(session-summary): tag video-summary Gemini calls with ai_product (#69149)

Brandon6d4778193b3d
diff --git a/posthog/temporal/session_replay/session_summary/activities/video_based/a4_analyze_video_segment.py b/posthog/temporal/session_replay/session_summary/activities/video_based/a4_analyze_video_segment.py
index 0561232613d2..ef6898dc5f4c 100644
--- a/posthog/temporal/session_replay/session_summary/activities/video_based/a4_analyze_video_segment.py
+++ b/posthog/temporal/session_replay/session_summary/activities/video_based/a4_analyze_video_segment.py
@@ -120,6 +120,7 @@ async def analyze_video_segment_activity(
posthog_distinct_id=inputs.user_distinct_id_to_log,
posthog_trace_id=trace_id,
posthog_properties={
+ "ai_product": "session_replay",
"segment_index": segment.segment_index,
},
posthog_groups={"project": str(inputs.team_id)},
diff --git a/posthog/temporal/session_replay/session_summary/activities/video_based/a6_consolidate_video_segments.py b/posthog/temporal/session_replay/session_summary/activities/video_based/a6_consolidate_video_segments.py
index 4c12661db972..f2e2c4bf8db2 100644
--- a/posthog/temporal/session_replay/session_summary/activities/video_based/a6_consolidate_video_segments.py
+++ b/posthog/temporal/session_replay/session_summary/activities/video_based/a6_consolidate_video_segments.py
@@ -175,7 +175,7 @@ async def _call_llm_to_consolidate_segments(
),
posthog_distinct_id=inputs.user_distinct_id_to_log,
posthog_trace_id=trace_id,
- posthog_properties={},
+ posthog_properties={"ai_product": "session_replay"},
posthog_groups={"project": str(inputs.team_id)},
)
@@ -307,7 +307,7 @@ async def _call_llm_to_tag_session(
),
posthog_distinct_id=inputs.user_distinct_id_to_log,
posthog_trace_id=trace_id,
- posthog_properties={"$session_id": inputs.session_id},
+ posthog_properties={"ai_product": "session_replay", "$session_id": inputs.session_id},
posthog_groups={"project": str(inputs.team_id)},
)