(on-error this key)
Increments a counter when an error happens e.g. invalid input/output or logic processing error. Validation errors will be counted using this method, but exceptions are not passed here.
Increments a counter when an error happens e.g. invalid input/output or logic processing error. Validation errors will be counted using this method, but exceptions are not passed here.
(on-failure this key)
Increments a counter when a failure happens e.g. an unexpected exception during request processing. Should also submit the error to an exception tracker using +track-exception+
Increments a counter when a failure happens e.g. an unexpected exception during request processing. Should also submit the error to an exception tracker using +track-exception+
(on-not-found this key uri)
Increments a counter on an endpoint not found
Increments a counter on an endpoint not found
(on-success this key reponse)
Increments given key on success. Also passes the reponse map.
Increments given key on success. Also passes the reponse map.
(record-timing this key time-ms)
Records the time taken to process the request
Records the time taken to process the request
(track-exception this exception)
(track-exception this exception data)
Tracks that an exception was thrown
Tracks that an exception was thrown
(with-timing monitoring key & body)
Tiny macro to record timing of a given form.
Tiny macro to record timing of a given form.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close