Provides means to correlate events from same request in logs and calls to external services
Provides means to correlate events from same request in logs and calls to external services
(correlation-ctx request)
Constructor for correlation context from the request
Constructor for correlation context from the request
(defined?)
Checks of context was defined for the request
Checks of context was defined for the request
(make-interceptor correlation-id-fn)
Extract the headers from the request, filter by the context keys we want to keep. Then make sure we have a flow-id by generating one if it doesn't exist. Note: the keys in the header map are plain strings, while we are keeping keywords in the context.
Extract the headers from the request, filter by the context keys we want to keep. Then make sure we have a flow-id by generating one if it doesn't exist. Note: the keys in the header map are plain strings, while we are keeping keywords in the context.
(with-context context & body)
Executes body, making context available via global dynamic var
Executes body, making context available via global dynamic var
(with-request request & body)
An alias to with-context
An alias to `with-context`
(wrap-handler async-ring-handler)
Wraps request->response and adds current request's context to global dynamic binding
Wraps request->response and adds current request's context to global dynamic binding
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close