Skip to main content

Module panic_hook

Module panic_hook 

Source
Expand description

install_panic_hook — emits one ObsPanicked event then calls Observer::shutdown_blocking(2s) so the inflight sinks have a chance to flush before the prior hook (potentially panic = abort) takes the process down.

Spec 11 § 6.1.

Functions§

install_panic_hook
Install the obs panic hook. Idempotent — calling more than once is a no-op.