try_install

Function try_install 

Source
pub fn try_install() -> Result<Recorder, SetRecorderError<Recorder>>
Expand description

Tries to install a default Recorder (backed by the prometheus::default_registry()) with the metrics::set_global_recorder().

ยงErrors

If the Recorder fails to be installed with the metrics::set_global_recorder().