            [java.util.concurrent TimeUnit])
   (:require [clojure.string :refer [blank?]]))
 
-(defn ^{:doc "
+(defn
+  ^{:doc "
   config for example:
 
  {:prefix nil

    registry))

(defn ^Metric register-metric
  ([^MetricRegistry registry ^Metric metric]
    (chain-register-metric registry metric)
    metric)

   :socket-timeout  5000}

   "}
  ^Transport create-http-transport
  ([]
    (create-http-transport nil))
  ([{:keys [api-key connect-timeout socket-timeout]}]
    (if (blank? api-key)
      (throw (IllegalArgumentException. "api-key must be setted")))
    (let [builder (HttpTransport$Builder.)]
      (.withApiKey builder api-key)
      (if (and (number? connect-timeout)
               (< 0 connect-timeout))
        (.withConnectTimeout builder connect-timeout))
      (if (and (number? socket-timeout)
               (< 0 socket-timeout))
        (.withSocketTimeout builder socket-timeout))
      (.build builder))))

(defn ^MetricRegistry create-metric-registry []
