1. Steve Losh
  2. metrics-clojure

Commits

Paul Bellamy  committed b1fcab7

Fixing compile

  • Participants
  • Parent commits 1c6c73f
  • Branches default

Comments (0)

Files changed (1)

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

View file
 (defn expose-metrics-as-json
   ([handler] (expose-metrics-as-json handler "/metrics"))
   ([handler uri]
-   (let [request-uri (:uri request)]
-     (fn [request]
+   (fn [request]
+     (let [request-uri (:uri request)]
        (if (or (.startsWith request-uri (sanitize-uri uri))
                (= request-uri uri))
          (metrics-json request)