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
+17
View File
@@ -0,0 +1,17 @@
/** A received POST /api/telemetry request, including reports rejected by validation. */
export interface TelemetryRequestLogEntry {
id: number;
server: string;
receivedAt: string;
status: number;
error: string | null;
event: string | null;
map: string | null;
round: number | null;
playerCount: number | null;
contentType: string | null;
payload: string;
payloadTruncated: boolean;
}
export const TELEMETRY_REQUEST_RETENTION = { maxPerServer: 200, maxAgeDays: 7 } as const;