From 2703215dec6a292f6f38e38b7bf561c3287411b4 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 15 Nov 2024 15:20:41 +0100 Subject: [PATCH] refactor: Add user_id to event properties Adding user_id to event properties allows tracking of which user started the event Refactor COG-597 --- cognee/shared/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cognee/shared/utils.py b/cognee/shared/utils.py index d05782ea3..a1792a2ed 100644 --- a/cognee/shared/utils.py +++ b/cognee/shared/utils.py @@ -52,6 +52,7 @@ def send_telemetry(event_name: str, user_id, additional_properties: dict = {}): }, "properties": { "time": current_time.strftime("%m/%d/%Y"), + "user_id": str(user_id), **additional_properties }, }