pub fn set_recorder(
    recorder: &'static dyn Recorder
) -> Result<(), SetRecorderError>
Expand description

Sets the global recorder to a &'static Recorder.

This function may only be called once in the lifetime of a program. Any metrics recorded before the call to set_recorder occurs will be completely ignored.

This function does not typically need to be called manually. Metrics implementations should provide an initialization method that installs the recorder internally.


An error is returned if a recorder has already been set.