feat(registry): opt-in product events, kept 90 days and counted on /metrics #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/registry-events"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Games whose player turns on "Share anonymous usage" send batches of events here (plan bright-pebble P5a).
Verified: go test ./... and go vet clean in golang:1.23 against Postgres 17 and MinIO (8 new tests).
https://claude.ai/code/session_01AWkPstXJVuifTEY3Zbjk28
POST /api/v1/events takes a batch of 1 to 100 events under a random install id, rate limited per install; DELETE /api/v1/events/{install} removes one install's events on opt-out. An hourly sweep drops events older than 90 days, and /metrics exports bnb_events_24h{game,kind} and bnb_event_installs_24h{game}. Claude-Session: https://claude.ai/code/session_01AWkPstXJVuifTEY3Zbjk28