five-on-it / apps/client/src/ui/telemetry
apps/client/src/ui/telemetry
Crash reports and anonymous usage statistics, the game's side (the platform's is apps/api/src/telemetry.ts): sent only with the player's consent (the settings' crashReports and usageStats, asked on the first start and changed in Settings → Privacy), only to the page's platform (pageApiBase), and never with a name, an account or a message. What identifies them is an install id this game made, kept in the browser, which the player can renew at any time.
- Crashes: an uncaught error or a rejected promise anywhere on the page (
watchCrashes), the overlay's error boundary, the WebGL context lost, and the desktop app's main process (electron/main.ts). Each is scrubbed first (scrub: no query strings, e-mails, tokens or home folders) and the same one is sent once a page. - Usage: the session (the platform, the renderer), the level played, a mission begun, done or failed, and the frame times a minute (
frames), batched and sent every minute and when the page goes away.