init_prometheus_recorder

Function init_prometheus_recorder 

Source
pub fn init_prometheus_recorder(
    recorder: PrometheusRecorder,
) -> &'static PrometheusRecorder
Expand description

Installs the provided recorder as the global recorder.

To customize the builder, first construct a recorder with PrometheusRecorder::install_with_builder, then pass it here.

ยงPanics

Panics if a recorder has already been installed.