Skip to content

Commit

Permalink
Update server to log new server version field to telemetry db
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Jun 8, 2023
1 parent bb2363f commit 139a3ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/telemetry/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@ def v1_telemetry(telemetry_data: List[Dict[str, str]]):
# Log telemetry data
for item in telemetry_data:
cur.execute(
"INSERT INTO usage (time, type, server_id, os, api, client) VALUES (?, ?, ?, ?, ?, ?)",
"INSERT INTO usage (time, type, server_id, os, api, client, server_version) VALUES (?, ?, ?, ?, ?, ?, ?)",
(
item["timestamp"],
item["telemetry_type"],
item["server_id"],
item["os"],
item.get("api"),
item.get("client"),
item.get("server_version", None),
),
)
# Commit the changes
Expand Down

0 comments on commit 139a3ba

Please sign in to comment.