Wide Event Logger
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.
4 min read
#toolingMost services log once per step, which means debugging one request means reassembling it from several unrelated lines. Building a single event object across the request's lifetime and logging it once, a "wide event" or canonical log line, means every field anyone set along the way lands on the same row.
@itsnas checkout.ts
codecheckout.ts
main
Nas (@itsnas)
main
Nas (@itsnas)