Added metric to record when a lease cannot be taken due to a ConditionalCheckFailedException
This commit is contained in:
parent
862fabb266
commit
a344ee4d05
1 changed files with 1 additions and 0 deletions
|
|
@ -236,6 +236,7 @@ public class DynamoDBLeaseTaker implements LeaseTaker {
|
|||
}
|
||||
|
||||
scope.addData("TakenLeases", takenLeases.size(), StandardUnit.COUNT, MetricsLevel.SUMMARY);
|
||||
scope.addData("UntakenLeases", untakenLeaseKeys.size(), StandardUnit.COUNT, MetricsLevel.SUMMARY);
|
||||
} finally {
|
||||
MetricsUtil.endScope(scope);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue