Expand description
Process-wide reporting of panics.
Tokio catches a panic at the task boundary and hands it to whoever joins the task, so a
panicking task neither stops the runtime nor, on its own, produces anything a monitoring
system can act on: the default hook writes to standard error and nothing else. The hook
installed here reports the panic through tracing and the metrics registry first, so
that panics are visible wherever the process’s other logs and metrics are collected.
Functions§
- init
- Installs a panic hook that reports panics through
tracingand the metrics registry before delegating to the hook that was previously installed.