Skip to main content

init

Function init 

Source
pub fn init()
Expand description

Installs a panic hook that reports panics through tracing and the metrics registry before delegating to the hook that was previously installed.

Calling this more than once has no further effect. It does not change what a panic does — the process still unwinds the panicking task and keeps running — only what is recorded about it.