mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-05-14 08:14:05 +02:00
Fix prometheus function signature to use strings instead of strs
This commit is contained in:
parent
bc5efa9a76
commit
1f1edd6e25
@ -77,7 +77,9 @@ where
|
||||
let res = fut.await?;
|
||||
|
||||
crate::metrics::MEILISEARCH_HTTP_REQUESTS_TOTAL
|
||||
.with_label_values(&[&request_method, &metric_path, res.status().as_str()])
|
||||
.with_label_values(
|
||||
&[request_method, metric_path, res.status().as_str().to_string()][..],
|
||||
)
|
||||
.inc();
|
||||
|
||||
if let Some(histogram_timer) = histogram_timer {
|
||||
|
Loading…
x
Reference in New Issue
Block a user