
· Asep Alazhari · Development
Cloudflare waitUntil Logging: Audit Logs Without Latency
Log to D1 with ctx.waitUntil without slowing responses. Measured 306 ms vs 1.7 ms, plus why logs go missing and the Illegal invocation fix. See the code.

Log to D1 with ctx.waitUntil without slowing responses. Measured 306 ms vs 1.7 ms, plus why logs go missing and the Illegal invocation fix. See the code.

Set up centralized Kubernetes logging with Fluent Bit and Elasticsearch to fix ephemeral logs and collect logs across namespaces. Follow the full setup guide.