diff --git a/posthog/caching/warming.py b/posthog/caching/warming.py index faf20218d0930..16ee52fc9f1d9 100644 --- a/posthog/caching/warming.py +++ b/posthog/caching/warming.py @@ -165,7 +165,11 @@ def schedule_warming_for_teams_task(): capture_ph_event( str(team.uuid), "cache warming - insights to cache", - properties={"count": len(insight_tuples)}, + properties={ + "count": len(insight_tuples), + "team_id": team.id, + "organization_id": team.organization_id, + }, ) # We chain the task execution to prevent queries *for a single team* running at the same time @@ -233,6 +237,8 @@ def warm_insight_cache_task(insight_id: int, dashboard_id: Optional[int]): "insight_id": insight.pk, "dashboard_id": dashboard_id, "is_cached": is_cached, + "team_id": insight.team_id, + "organization_id": insight.team.organization_id, }, )