Expand description
The audit layer.
Rollup requires state accumulated across events within a span, which a
FormatEvent implementation cannot hold — so this is a full Layer that
keeps per-span state in span extensions:
on_new_span— capture the envelope fields, install an emptyRollupon_record— pick upoutcome/duration_msrecorded at finishon_event— print exceptions now, fold allows into the parent spanon_close— render and flush the rollup line
Structs§
- Audit
Layer - Stderr
Writer - The production sink: stderr, line-buffered, failures ignored.
Enums§
- Detail
- How much the operator wants to see.
Constants§
- DEFAULT_
ROLLUP_ CAP - Default cap on distinct rollup groups per tool call. Chosen to comfortably cover a well-behaved component; past it, new groups collapse into a count.
Traits§
- Audit
Writer - Where rendered lines go. Abstracted so tests can capture them.