diff --git a/Cargo.lock b/Cargo.lock index b250c04..42ad996 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -407,7 +407,7 @@ dependencies = [ [[package]] name = "highlights" -version = "1.0.0-beta.2" +version = "1.0.0-beta.3" dependencies = [ "chrono", "dotenv", diff --git a/Cargo.toml b/Cargo.toml index 2bd0bcf..5bdbfd7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "highlights" -version = "1.0.0-beta.2" +version = "1.0.0-beta.3" authors = ["Benjamin Scherer "] repository = "https://github.com/ThatsNoMoon/highlights" license = "OSL-3.0" diff --git a/src/monitoring.rs b/src/monitoring.rs index e4898f2..15511f4 100644 --- a/src/monitoring.rs +++ b/src/monitoring.rs @@ -72,12 +72,12 @@ impl Drop for Timer { TimerType::Command => { COMMAND_TIME_GAUGE .with_label_values(&[self.name]) - .add(elapsed); + .set(elapsed); } TimerType::Query => { QUERY_TIME_GAUGE .with_label_values(&[self.name]) - .add(elapsed); + .set(elapsed); } } }