Add per-server telemetry request diagnostics

This commit is contained in:
2026-09-19 18:59:30 -04:00
parent a182aeb950
commit 41891b4209
10 changed files with 614 additions and 14 deletions
+18
View File
@@ -367,6 +367,24 @@ CREATE TABLE IF NOT EXISTS server_telemetry (
received_at TEXT NOT NULL,
payload TEXT
);
-- Request diagnostics survive registry removal and also capture unknown names.
-- Bounded independently of the latest scoreboard and permanent leaderboard.
CREATE TABLE IF NOT EXISTS telemetry_requests (
id INTEGER PRIMARY KEY AUTOINCREMENT,
server TEXT NOT NULL,
received_at TEXT NOT NULL,
status INTEGER NOT NULL,
error TEXT,
event TEXT,
map TEXT,
round INTEGER,
player_count INTEGER,
content_type TEXT,
payload TEXT NOT NULL,
payload_truncated INTEGER NOT NULL DEFAULT 0
);
CREATE INDEX IF NOT EXISTS idx_telemetry_requests_server ON telemetry_requests(server, id DESC);
CREATE INDEX IF NOT EXISTS idx_telemetry_requests_received ON telemetry_requests(received_at);
-- Lifecycle history deliberately survives removal of the server registry row.
CREATE TABLE IF NOT EXISTS server_deployments (
id TEXT PRIMARY KEY,