Add per-server telemetry request diagnostics
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user