mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-12 15:56:34 +00:00
Fix prometheus function signature to use strings instead of strs
This commit is contained in:
@ -77,7 +77,9 @@ where
|
|||||||
let res = fut.await?;
|
let res = fut.await?;
|
||||||
|
|
||||||
crate::metrics::MEILISEARCH_HTTP_REQUESTS_TOTAL
|
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();
|
.inc();
|
||||||
|
|
||||||
if let Some(histogram_timer) = histogram_timer {
|
if let Some(histogram_timer) = histogram_timer {
|
||||||
|
Reference in New Issue
Block a user