Пример #1
0
 public final Timer.Context indexTimer(String type, String op) {
   String name = index + ":" + type + ":" + op + ":ts";
   return MetricCollectorImpl.current().getTimer(clazz, name);
 }
Пример #2
0
 public final void failedIncr(String type, String op, Exception e) {
   String name = index + ":" + type + ":" + op + ":" + e.getClass().getSimpleName();
   MetricCollectorImpl.current().incrementCounter(clazz, name);
 }
Пример #3
0
 public final void indexIncr(String type, String op) {
   String name = index + ":" + type + ":" + op;
   MetricCollectorImpl.current().incrementCounter(clazz, name);
 }