Liking cljdoc? Tell your friends :D

cutty-sark.correlation-ctx

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

*ctx*clj

source

channel?clj

(channel? channel)
source

correlation-ctxclj

(correlation-ctx request)

Constructor for correlation context from the request

Constructor for correlation context from the request
sourceraw docstring

correlation-id-headerclj

source

defined?clj

(defined?)

Checks of context was defined for the request

Checks of context was defined for the request
sourceraw docstring

encoderclj

source

interceptorclj

source

make-interceptorclj

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

with-contextcljmacro

(with-context context & body)

Executes body, making context available via global dynamic var

Executes body, making context available via global dynamic var
sourceraw docstring

with-requestcljmacro

(with-request request & body)

An alias to with-context

An alias to `with-context`
sourceraw docstring

wrap-handlerclj

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

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

× close