     (java.io StringWriter ByteArrayOutputStream ByteArrayInputStream)))
 
 (def request-counter (atom nil))
-(def request-duration-counter (atom nil))
 (def request-summary (atom nil))
 
 (defn- make-request-counter [namespace]

      (.name "http_requests_total")
      (.labelNames (into-array String ["method" "status" "path"]))
      (.documentation "A counter of the total number of HTTP requests processed.")
      (.build)))

(defn- make-request-duration-counter [namespace]
  (-> (Counter/newBuilder)
      (.namespace namespace)
      (.name "http_request_durations_milliseconds_total")
      (.labelNames (into-array String ["method" "status" "path"]))
      (.documentation "The total amount of time Ring has spent answering HTTP requests (in milliseconds).")
      (.build)))

(defn- make-request-summary [namespace]

  (Prometheus/defaultInitialize)
  (Prometheus/defaultAddPreexpositionHook (Hotspot.))
  (reset! request-counter (make-request-counter namespace))
  (reset! request-summary (make-request-summary namespace)))
