mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 21:27:53 -05:00
annotate trace events with app_id if we have it
This commit is contained in:
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user