Added metric to record when a lease cannot be taken due to a ConditionalCheckFailedException

This commit is contained in:
Adam Tapp 2022-03-30 16:14:11 -05:00
parent 7f5eb9f34b
commit a865c1c39c

View file

@ -236,6 +236,7 @@ public class DynamoDBLeaseTaker implements LeaseTaker {
} }
scope.addData("TakenLeases", takenLeases.size(), StandardUnit.COUNT, MetricsLevel.SUMMARY); scope.addData("TakenLeases", takenLeases.size(), StandardUnit.COUNT, MetricsLevel.SUMMARY);
scope.addData("UntakenLeases", untakenLeaseKeys.size(), StandardUnit.COUNT, MetricsLevel.SUMMARY);
} finally { } finally {
MetricsUtil.endScope(scope); MetricsUtil.endScope(scope);
} }