Skip to main content

init

Function init 

Source
pub fn init(verbose: bool)
Expand description

Install the process-wide subscriber: fmt → stderr at info (debug when verbose), plus the empty reloadable OTLP slot.

Callable any number of times without panicking; the first global subscriber and the first parked handle win. main calls it exactly once, so in the real process the two are the same subscriber - the losing-race cases exist only inside the test binary, where other tests own the global slot.