Skip to content

Commit 58e9b5a

Browse files
Merge pull request #46 from CleverCloud/devel/fdubois/chore/update-deps
chore: update prometheus crate
2 parents 7a5244a + f5435c7 commit 58e9b5a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bytes = { version = "^1.10.1", features = ["serde"], optional = true }
1818
crypto-common = { version = "^0.1.6", optional = true }
1919
hmac = { version = "^0.12.1", features = ["std"], optional = true }
2020
log = { version = "^0.4.27", optional = true }
21-
prometheus = { version = "^0.13.4", optional = true }
21+
prometheus = { version = "^0.14.0", optional = true }
2222
reqwest = { version = "^0.12.15", default-features = true, features = [
2323
"rustls-tls-webpki-roots",
2424
"charset",

src/client/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,12 @@ impl Request for Client {
565565
.inc();
566566

567567
CLIENT_REQUEST_DURATION
568-
.with_label_values(&[&endpoint, &method, &status.as_u16().to_string(), "us"])
568+
.with_label_values(&[
569+
&endpoint,
570+
&method,
571+
&status.as_u16().to_string(),
572+
&"us".to_string(),
573+
])
569574
.inc_by(Instant::now().duration_since(instant).as_micros() as f64);
570575
}
571576

0 commit comments

Comments
 (0)