Skip to content

Commit

Permalink
Update tests and docs to metrics 0.22.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendorff committed Jan 12, 2024
1 parent 91d2cca commit 4d8cf42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl StatsdBuilder {
/// let recorder = StatsdBuilder::from("", 0)
/// .with_sink(sink)
/// .build(Some("my_app"))?;
/// metrics::set_boxed_recorder(Box::new(recorder));
/// metrics::set_global_recorder(recorder);
/// # Ok(())
/// # }
/// ```
Expand Down Expand Up @@ -597,7 +597,7 @@ mod tests {
.expect("should build a recorder with custom sink");

let key = Key::from_name("counter.name");
let counter = recorder.register_counter(&key);
let counter = recorder.register_counter(&key, &METADATA);
counter.increment(1);

let guard = s.lock().unwrap();
Expand Down

0 comments on commit 4d8cf42

Please sign in to comment.