- APP_START
- Was the last shutdown normal, and when was the device last alive?
- POWER_SUSPEND
- Did the device go to sleep?
- SCREEN_LOCK
- Was the lock screen up, meaning auto-login was off?
- RENDERER_GONE
- Why did the screen process die?
What 1,038 support messages showed
Scan kiosks (Windows PCs with a camera and turntable) sit in clinics and schools, and one developer handled support by remote desktop. I read every message in 41 support chat rooms (1,038 messages, 2025.11 – 2026.11) and labeled the outcome of each of 56 support cases. Most causes were outside the app: sleep and abnormal shutdown, Windows Update, USB unplugged, Wi-Fi drops. None of these were in the app logs, and the existing logs could not reconstruct what happened on a device.
The storage decision changed three times
Requirements: survives shutdown and offline · long retention for trends · isolated from the scan path · no new server or permissions · cost. Scan data comes with patient context, so it must not reach a third party; Amplitude receives only filtered usage events.
- Sentry
- Sends patient context to a third party.
- Amplitude only
- 1,024-character string limit; kept for usage flow only.
- Production Redis
- No memory cap (162 MB measured, 315 MB peak); a logging problem would stop the scan queue too.
- Log-only Redis + ingest API
- One more service to run, 14-day deletion, higher cost than object storage.
- Postgres
- Writes every 60 s keep the serverless DB awake.
- Existing Firebase bucket (chosen)
- The bucket already existed but was unused, so no new vendor; about $1/month expected.
The order it went in two days: log-only Redis + API → production Redis with per-device caps → dedicated bucket + ingest API → devices writing straight to the existing bucket.
Three rules for the log
- Every event answers a support question
- 55 event types, each mapped to the question it answers; an event without a question fails the test suite.
- Collect in the main process
- The most common failure is the screen process dying, and a buffer there dies with it. One collection point is also one place to enforce the personal-data filter.
- Content-addressed, create-only uploads
- Retries never create duplicates.
Day one
Shipped 2026.11.13. On the first day, 15 devices sent 4,544 events, read without remote access. What they showed, and what was done:
- Events stop at 13:30 with no shutdown record → check for a power cut or forced shutdown.
- 2 turntable-stop warnings, 3 USB unplugs → hardware connection check.
- 4 devices sleep before the app starts → one power setting per site.
- The expected-config lookup fails on every boot → fix the lookup path.
- Defects in the log itself → next app version.
The touchscreen ticket
One open ticket, "the screen does not respond to touch", had a site visit with no cause found. The log showed 821 taps on an unnamed screen element on that device (0–18 on others), continuing after scans ended and resetting the idle timer. This points to phantom touch input from the monitor; it is not confirmed.
Who did what
Mine: reading and labeling the support chats, event design, the storage decision, collection in the main process, the event-to-question test, wiring the app to Firebase and Amplitude. Not mine: the Firebase bucket and Amplitude account, which existed but were not connected to the app.
The 56 outcome labels were made by hand; no LLM judge was built or compared against them.