Skip to content

Commit

Permalink
added metrics to capture append and add metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
smadappa committed Jul 14, 2016
1 parent 3e86316 commit 9e11f4f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ public void receivedStatus(OperationStatus val) {
rv.set(val.isSuccess(), val);
appendSuccess = true;
} else {
EVCacheMetricsFactory.getCounter(appName + "-" + serverGroup.getName() + "-AoA-AppendCall-FAIL").increment();
appendSuccess = false;
}
}
Expand All @@ -327,6 +328,11 @@ public void receivedStatus(OperationStatus val) {
if (log.isDebugEnabled()) log.debug("AddOrAppend Key (Ad Operation): " + key + "; Status : " + val.getStatusCode().name()
+ "; Message : " + val.getMessage() + "; Elapsed Time - " + (System.currentTimeMillis() - operationDuration.getDuration()));
rv.set(val.isSuccess(), val);
if(val.isSuccess()) {
EVCacheMetricsFactory.getCounter(appName + "-" + serverGroup.getName() + "-AoA-AddCall-SUCCESS").increment();
} else {
EVCacheMetricsFactory.getCounter(appName + "-" + serverGroup.getName() + "-AoA-AddCall-FAIL").increment();
}
}

@Override
Expand Down

0 comments on commit 9e11f4f

Please sign in to comment.