feat(telemetry): local move-preview adoption metrics (Phase 4) #155
Reference in New Issue
Block a user
Delete Branch "feature/local-eval-telemetry"
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?
Phase 4 of the local move-preview accelerator (docs/ARCHITECTURE.md §5, §11).
Measures uptake so the feature can be watched before it is defaulted on:
local_eval_cold_start_total— app cold starts (the adoption denominator).local_eval_dict_load_total(result= fetched/cache_hit/miss) — a dawg download that fills IndexedDB, a cache hit, or a warm-up that failed/timed out.local_eval_preview_total(path= local/network) — the share computed on-device vs the networkevaluatefallback.Non-blocking by design: the in-app
note*counters are plain in-memory increments on the gameplay path; only a periodicflush()touches the network (a session-gatedPOST /metrics/local-evalbeacon, 60s timer + on backgrounding, fire-and-forget,keepalive). The gateway folds each batch into OTel counters (in-memory.Add), clamped against a spoofed inflation. Surfaced on the Scrabble — Users dashboard.Verified: Go gofmt/vet/build; UI check, build, bundle (100.3/110), unit (361), e2e (160). Conformance is unaffected (no change to the dawg/validate/eval surface) and runs in CI.