← All tags

#logging

3 entries tagged #logging

  • Your Logging Sucks!

    Post · Sep 23, 2026

    A checkout endpoint with a log line at every step looks like good observability, right up until a customer says "my payment failed" and you have thirteen unrelated lines from thirteen unrelated requests to sort through. The fix isn't more logs, it's one wide event per request instead.

  • Wide Event Logger

    Snippet · Sep 23, 2026

    A tiny `createEvent(name, seed)` that accumulates fields over the life of a request via `.set()` and emits exactly one structured log line via `.emit()`, so a request that touches ten steps still produces one row instead of ten.

  • Instrument a Service with Wide Events

    Cheatsheet · Sep 23, 2026

    You're about to add logging to a new service, or you're staring at an existing one where every incident turns into a grep-and-guess session across a dozen disconnected log lines. Replace the step-by-step logs with one wide event per request.