Liking cljdoc? Tell your friends :D

request-id.core


current-header-nameclj


default-header-keyclj


request-idclj

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