: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(aio): stop the checklist stats tests aging out of the window (#102279)
Georges-Antoine Assi5b128a69a644
diff --git a/products/ai_observability/backend/instrumentation_checklist/test/test_stats.py b/products/ai_observability/backend/instrumentation_checklist/test/test_stats.pyindex 768e9d6c999d..49b6720d762f 100644--- a/products/ai_observability/backend/instrumentation_checklist/test/test_stats.py+++ b/products/ai_observability/backend/instrumentation_checklist/test/test_stats.py@@ -19,8 +19,6 @@ from products.ai_observability.backend.instrumentation_checklist.stats import (fetch_checklist_stats,)-NOW = datetime(2026, 8, 19, 12, 0, tzinfo=UTC)-_TOOL = {"type": "function", "function": {"name": "search"}}@@ -39,7 +37,7 @@ def _ai_event(# the SDK falls back to the trace id, so every trace looks like its own user."distinct_id": distinct_id if distinct_id is not None else trace_id,"team": team,- "timestamp": timestamp or NOW - timedelta(days=1),+ "timestamp": timestamp or datetime.now(UTC) - timedelta(days=1),"properties": {"$ai_trace_id": trace_id, **(properties or {})},}