Expand description
Crash reporting: panic hook, native fault capture, local report files.
pub so the binaries install the hooks and the editor composes the
recent-log ring layer into its tracing subscriber.
Structs§
- Ring
Layer - A
tracinglayer that keeps the most recent INFO-and-above log lines in a bounded in-memory ring for inclusion in crash reports. Passive and cheap: lines are formatted into recycled fixed-size buffers under a short lock, and nothing is emitted per frame by the layer itself.
Functions§
- install
- Install the process-wide crash hooks writing to
dir: a panic hook that writes a report and chains to the previously installed hook, plus (macOS/Windows) a native fault handler that writes a minidump. Binaries call this first thing at startup, naming thecrashes/of the state tree they resolved; later calls re-point the directory but install nothing twice. - note
- Record a context note included in subsequent crash reports, replacing any
previous value for
key. Bounded: at most 16 keys, keys truncate at 32 bytes and values at 128; further keys are dropped.