Module bootstrap

Module bootstrap 

Source
Expand description

This is a shortcut fn to read AppConfig and call init_tracing and init_metrics fn.

Functionsยง

bootstrap
Reads AppConfig and calls init_tracing. Return Error if fails to read AppConfig or init_tracing returns error. Return Error if called twice because of internal call to [tracing_subscriber::registry().try_init()].