windows-iso-downloader/backend
Shekhar Vaidya b252ba1c30 feat(backend): approximate distinct-source count for Sentinel rejections
CLI telemetry showed a growing count of Sentinel rejections but no way
to tell whether they come from one user retrying repeatedly or many
distinct users independently getting blocked.

Adds a per-day Redis HyperLogLog (msdl:telemetry:sentinel_hll:<date>)
seeded from the reporting IP whenever a CLI error contains "Sentinel",
plus a parallel daily counter. /metrics now exposes sentinel_today:
{date, errors_today, distinct_sources_est}. No raw IPs are stored --
HLL is a one-way cardinality estimator, and both keys expire after 48h.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-13 12:37:01 +05:30
..
Dockerfile fix: bump Dockerfile to golang:1.25-alpine to match go.mod requirement 2026-05-18 22:51:25 +05:30
go.mod feat: Phase 3 crowdsourced cache contribution 2026-06-18 14:07:35 +05:30
go.sum feat: Phase 3 crowdsourced cache contribution 2026-06-18 14:07:35 +05:30
main.go feat(backend): approximate distinct-source count for Sentinel rejections 2026-07-13 12:37:01 +05:30