Files
G0DM0D3/functions/api
faber f0744d1f1b fix: in-memory isolate buffer replaces direct-commit fallback
When TELEMETRY_KV is not bound, telemetry events now accumulate in
the Worker isolate's module-level buffer (same persistence model as
the rate limiter) and flush to HF when the buffer reaches 50 events,
256 KiB, or 15 minutes — whichever comes first. This eliminates the
one-commit-per-request explosion without requiring any Cloudflare
Dashboard configuration.

KV is still preferred (durable across isolate evictions), but the
fallback now produces ~1 HF commit per 50 requests instead of 50.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-10 21:59:47 -04:00
..