Skip to content

Commit

Permalink
fix: adds a predicted to fail metrics (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
montekki authored Sep 25, 2023
1 parent 7cf556a commit 9116faa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions finalizer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ where

let predicted_to_fail = self.predict_fails(accumulator.withdrawals()).await?;

metrics::counter!(
"finalizer.predicted_to_fail_withdrawals",
predicted_to_fail.len() as u64
);

vlog::debug!("predicted to fail: {predicted_to_fail:?}");

if !predicted_to_fail.is_empty() {
Expand Down

0 comments on commit 9116faa

Please sign in to comment.