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.

chore(replay-vision): lower default summary sample rate and monthly cap (#65381)

Tue Haulund71a7cdb9aa06
diff --git a/posthog/session_recordings/ai_summary_cap.py b/posthog/session_recordings/ai_summary_cap.py
index dae6c93392dc..4af6adaba667 100644
--- a/posthog/session_recordings/ai_summary_cap.py
+++ b/posthog/session_recordings/ai_summary_cap.py
@@ -24,7 +24,7 @@ from posthog.redis import get_client
logger = structlog.get_logger(__name__)
# Bump in a deploy. Per-team lowering is allowed via SignalSourceConfig.
-DEFAULT_MAX_SUMMARIES_PER_PERIOD = 4 * 1000
+DEFAULT_MAX_SUMMARIES_PER_PERIOD = 2500
# JSON key on SignalSourceConfig.config.
CONFIG_KEY = "max_summaries_per_period"
diff --git a/posthog/temporal/session_replay/summarization_sweep/constants.py b/posthog/temporal/session_replay/summarization_sweep/constants.py
index 2263fb5586fb..d65049a59fcb 100644
--- a/posthog/temporal/session_replay/summarization_sweep/constants.py
+++ b/posthog/temporal/session_replay/summarization_sweep/constants.py
@@ -14,7 +14,7 @@ SCHEDULE_INTERVAL = timedelta(minutes=5)
SESSION_LOOKBACK_MINUTES = 30
SAMPLE_RATE_PRECISION = 10_000
-DEFAULT_SAMPLE_RATE = 0.1
+DEFAULT_SAMPLE_RATE = 0.05
# Caps in-flight `start_child_workflow` calls per tick to keep the dispatch loop within
# WORKFLOW_EXECUTION_TIMEOUT.