Liking cljdoc? Tell your friends :D

request-id.core


add-request-id-timbre-middlewareclj

(add-request-id-timbre-middleware request-id)

default-header-keyclj


request-idclj

(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.
raw docstring

request-id-headerclj

(request-id-header)

url-friendly-guidclj

(url-friendly-guid)
See <https://www.ietf.org/rfc/rfc3986.txt>
raw docstring

with-request-id-stampingcljmacro

(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
raw docstring

wrap-request-idclj

(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.
raw docstring

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

× close