Liking cljdoc? Tell your friends :D

duckula.protocol


Monitoringcljprotocol

on-errorclj

(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-failureclj

(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-foundclj

(on-not-found this key uri)

Increments a counter on an endpoint not found

Increments a counter on an endpoint not found

on-successclj

(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-timingclj

(record-timing this key time-ms)

Records the time taken to process the request

Records the time taken to process the request

track-exceptionclj

(track-exception this exception)
(track-exception this exception data)

Tracks that an exception was thrown

Tracks that an exception was thrown
source

with-timingcljmacro

(with-timing monitoring key & body)

Tiny macro to record timing of a given form.

Tiny macro to record timing of a given form.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close