observability
Installation
SKILL.md
Observability
Record what happened to this request, not what the code is doing. One canonical record per unit of work, carrying every dimension you would want to group by later. Run each section's Check before calling the instrumentation done.
One wide event per unit of work
A request, job, or run emits exactly one rich record — a wide event, or
canonical log line. Capture the immutable facts before the work starts,
accumulate the outcome into a mutable record as it runs, emit where every path
converges. In imperative code that is finally, over an accumulator declared
beside the frozen context (telegram-claude, src/bot.ts):