metrics: fix docs

This commit is contained in:
asonix 2024-01-13 16:37:14 -05:00
parent f85469686f
commit 8797127077
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ pub fn install() -> Result<StatsHandle, SetRecorderError<StatsRecorder>> {
/// .add_recorder(jobs_recorder)
/// .build();
///
/// metrics::set_boxed_recorder(Box::new(recorder)).expect("Failed to set recorder");
/// metrics::set_global_recorder(recorder).expect("Failed to set recorder");
///
/// println!("{:?}", handle.get());
/// ```

View file

@ -125,7 +125,7 @@ impl StatsRecorder {
/// .add_recorder(jobs_recorder)
/// .build();
///
/// metrics::set_boxed_recorder(Box::new(recorder)).expect("Failed to set recorder");
/// metrics::set_global_recorder(recorder).expect("Failed to set recorder");
///
/// println!("{:?}", handle.get());
/// ```