Commits

Michael Klishin committed 3112078

Cosmetics

Comments (0)

Files changed (1)

metrics-clojure-ring/src/metrics/ring/expose.clj

 (ns metrics.ring.expose
   (:import (com.yammer.metrics.core Gauge Timer Counter Histogram Meter))
-  (:require [metrics.gauges :as gauges])
-  (:require [metrics.meters :as meters])
-  (:require [metrics.histograms :as histograms])
-  (:require [metrics.counters :as counters])
-  (:require [metrics.timers :as timers])
-  (:use [ring.util.response :only [header response]])
-  (:use [metrics.utils :only [all-metrics]])
-  (:use [cheshire.core :only [generate-string]]))
+  (:require [metrics.gauges :as gauges]
+            [metrics.meters :as meters]
+            [metrics.histograms :as histograms]
+            [metrics.counters :as counters]
+            [metrics.timers :as timers])
+  (:use [ring.util.response :only [header response]]
+        [metrics.utils :only [all-metrics]]
+        [cheshire.core :only [generate-string]]))
 
 
 ; Define rendering protocol ---------------------------------------------------
       (header "Content-Type" "application/json"))))
 
 (defn expose-metrics-as-json
-  ([handler] (expose-metrics-as-json handler "/metrics"))
+  ([handler]
+     (expose-metrics-as-json handler "/metrics"))
   ([handler uri]
    (fn [request]
      (let [request-uri (:uri request)]
                (= request-uri uri))
          (metrics-json request)
          (handler request))))))
-
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.