annotate trace events with app_id if we have it

This commit is contained in:
Senko Rasic
2024-06-11 16:51:29 +02:00
parent ca77cc5055
commit 515ccee93c

View File

@@ -366,6 +366,9 @@ class Telemetry:
if not self.enabled or getenv("DISABLE_TELEMETRY"):
return
if not data.get("app_id") and self.data("app_id"):
data = {**data, "app_id": self.data["app_id"]}
payload = {
"pathId": self.telemetry_id,
"event": f"trace-{name}",