Skip to content

Commit

Permalink
Added metric to record when a lease cannot be taken due to a Conditio…
Browse files Browse the repository at this point in the history
…nalCheckFailedException
  • Loading branch information
Adam Tapp authored and zengyu714 committed Mar 31, 2022
1 parent 862fabb commit a344ee4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ synchronized Map<String, Lease> takeLeases(Callable<Long> timeProvider)
}

scope.addData("TakenLeases", takenLeases.size(), StandardUnit.COUNT, MetricsLevel.SUMMARY);
scope.addData("UntakenLeases", untakenLeaseKeys.size(), StandardUnit.COUNT, MetricsLevel.SUMMARY);
} finally {
MetricsUtil.endScope(scope);
}
Expand Down

0 comments on commit a344ee4

Please sign in to comment.