← All tags

#node

2 entries tagged #node

  • 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.