(add-request-id-timbre-middleware request-id)(request-id)(request-id {:keys [headers]})When invoked without arguments, pulls the current request ID set by the
wrap-request-id middleware.
Given an HTTP request (a la ring), get its request ID. Must be called
from within an invocation of the wrap-request-id middleware. This form
is deprecated.
When invoked without arguments, pulls the current request ID set by the `wrap-request-id` middleware. Given an HTTP request (a la ring), get its request ID. Must be called from within an invocation of the `wrap-request-id` middleware. This form is deprecated.
(request-id-header)(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |