Source

metrics-clojure / src / metrics / core.clj

Diff from to

src/metrics/core.clj

 (ns metrics.core
-  (use [metrics.utils :only (metric-name)])
-  (import (com.yammer.metrics Metrics))
-  (import (com.yammer.metrics.reporting ConsoleReporter))
-  (import (java.util.concurrent TimeUnit)))
+  (:use [metrics.utils :only (metric-name)])
+  (:import (com.yammer.metrics Metrics))
+  (:import (com.yammer.metrics.reporting ConsoleReporter))
+  (:import (java.util.concurrent TimeUnit)))
 
 
 (defn remove-metric [title]
-  (Metrics/removeMetric (metric-name title)))
+  (.removeMetric (Metrics/defaultRegistry) (metric-name title)))
 
 
 (defn report-to-console [seconds]