(add-request-id-timbre-middleware request-id)
(request-id {:keys [headers]})
Given an HTTP request (a la ring), get the current request ID. Must be called
from within an invocation of the wrap-request-id
middleware
Given an HTTP request (a la ring), get the current request ID. Must be called from within an invocation of the `wrap-request-id` middleware
(with-request-id-stamping request-id & body)
Given a request-id
, make sure every log message is stamped with the
request-id
in brackets at the beginning
Given a `request-id`, make sure every log message is stamped with the `request-id` in brackets at the beginning
(wrap-request-id handler)
(wrap-request-id request-id-header-name handler)
Wrap a handler function in a function that causes a unique request ID to
be stamped on every log message using a timbre middleware. If you give it
a request-id-header-name
, it will grab/generate the header on the request
and response using the given name. If a value is already present in the
headers it will use the existing value instead of making a new one.
Wrap a handler function in a function that causes a unique request ID to be stamped on every log message using a timbre middleware. If you give it a `request-id-header-name`, it will grab/generate the header on the request and response using the given name. If a value is already present in the headers it will use the existing value instead of making a new one.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close