diff --git a/api/src/handlers/utils.rs b/api/src/handlers/utils.rs index c0171b05..65f717ed 100644 --- a/api/src/handlers/utils.rs +++ b/api/src/handlers/utils.rs @@ -37,14 +37,16 @@ pub(crate) async fn do_metered_action( } else { metrics .action_failures_total - .with_label_values(&[action_label_value]); + .with_label_values(&[action_label_value]) + .inc(); Ok(val) } } Err(err) => { metrics .action_failures_total - .with_label_values(&[action_label_value]); + .with_label_values(&[action_label_value]) + .inc(); Err(err) } } diff --git a/api/src/metrics.rs b/api/src/metrics.rs index f583de15..e5bdc664 100644 --- a/api/src/metrics.rs +++ b/api/src/metrics.rs @@ -55,7 +55,7 @@ impl Metrics { "/compile-scarb" | "/compile-scarb-async" | "/compile-to-sierra" - | "compile-to-sierra-async" => self + | "/compile-to-sierra-async" => self .action_total .with_label_values(&[COMPILATION_LABEL_VALUE]) .inc(),