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().