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

Diff from to

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

         [metrics.meters :only (meter mark!)]
         [metrics.timers :only (timer time!)]))
 
+
 (defn- mark-in! [metric-map k]
   (when-let [metric (metric-map k)]
     (mark! metric)))
 (defn instrument
   "Instrument a ring handler.
 
-  This middleware should be added as late as possible for maximum effect."
+  This middleware should be added as late as possible (nearest to the outside of
+  the \"chain\") for maximum effect.
+  "
   ([handler]
    (let [active-requests (counter ["ring" "requests" "active"])
          requests (meter ["ring" "requests" "rate"] "requests")
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.