Commits

Steve Losh committed 58d1e62

Clean up defhistogram.

  • Participants
  • Parent commits cf47ec1

Comments (0)

Files changed (2)

File metrics-clojure-core/src/metrics/counters.clj

   [title]
   (Metrics/newCounter (metric-name title)))
 
+
 (defmacro defcounter
   "Define a new Counter metric with a given title, or group, type and title."
   ([title]

File metrics-clojure-core/src/metrics/histograms.clj

      ^MetricName (metric-name title)
      (boolean biased))))
 
+
 (defmacro defhistogram
   "Define a Histogram metric with the given title."
   [title & args]
-  `(def ~title
-     (histogram ~@(cons (str title) args))))
+  `(def ~title (histogram ~(str title) ~@args)))
 
 
 ; Read ------------------------------------------------------------------------