Enforce free-tier daily cap from daily_usage

The cap counted Postgres otel_logs_and_spans, which is empty with
TimeFusion-only writes, so it never tripped. Meter from apis.daily_usage
(recorded hourly for unbilled plans too), gate OTLP gRPC and HTTP exports
with partial-success rejections, dedupe notices per day in
projects.free_tier_notices, serialize ReportUsage per project with an
advisory lease, and fold unbilled legacy plans into Free.
This commit is contained in:
Anthony Alaribe 2026-10-22 01:29:18 +02:00
commit a7ece43bc2
18 changed files with 425 additions and 219 deletions