Artifact bc425f0b31810dd742bbc97cf329c593aaa2a7d2725ea37d8e7514f2f227a9e9:
- File
cmd/quarry/analytics_wasm.go
— part of check-in
[e2b74749b4]
at
2026-08-25 22:19:15
on branch fleet-census
— Analytics: say whether history is being kept, and stop keeping it for ever
The live panels read in-memory rings, so a forge whose store failed to open looked exactly like a healthy one. Sink.Err() existed and nothing asked it. The page now distinguishes three states: off, broken, and recording to a named path.
Retention was 'append for ever', which is a default nobody was asked about. --analytics-keep sets the window, 14d by default, 0 keeps everything. Pruned at startup and daily. (user: dmestas, size: 324) [annotate] [blame] [check-ins using] [more...]
//go:build js || wasip1 package main import "time" // openAnalytics is a no-op where DuckDB cannot go. The live panels read // obs.Default's rings and are unaffected; only history is absent, which // is the trade the embedded build was always making. func openAnalytics(string, time.Duration) func() { return func() {} }