Permalink
Browse files

Fixed metrics population

  • Loading branch information...
1 parent b4fec19 commit e345ee6cdf9ce7b2a858c32706dbfbac6f667eaa @jplock committed Nov 6, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/main/java/com/urbanairship/octobot/Metrics.java
@@ -5,14 +5,11 @@
import com.yammer.metrics.core.MetricsRegistry;
import com.yammer.metrics.core.Timer;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.LinkedList;
import java.util.concurrent.TimeUnit;
public class Metrics {
- protected static final MetricsRegistry registry = new MetricsRegistry();
+ protected static final MetricsRegistry registry = com.yammer.metrics.Metrics.defaultRegistry();
// Updates internal metrics following task execution.
public static void update(String task, long time, boolean status, int retries) {

0 comments on commit e345ee6

Please sign in to comment.