mirror of
https://github.com/monoscope-tech/monoscope.git
synced 2026-11-16 10:18:01 +00:00
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:
parent
9e17d5674e
commit
a7ece43bc2
18 changed files with 425 additions and 219 deletions
36
src/Utils.hs
36
src/Utils.hs
Loading…
Add table
Add a link
Reference in a new issue