refactor: Add user_id to event properties

Adding user_id to event properties allows tracking of which user started the event

Refactor COG-597
This commit is contained in:
Igor Ilic 2024-11-15 15:20:41 +01:00
parent d90f5fe7c1
commit 2703215dec

View file

@ -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
},
}