(assoc-log-context interceptor-context provided-log-context)add the log context into the top-level of the interceptor-context and into the coeffects - so both the interceptor-context and the coeffects can be used as a log-context-src in the a-frame.log logging macros
if a log-context is already set do not override it
add the log context into the top-level of the interceptor-context and into the coeffects - so both the interceptor-context and the coeffects can be used as a log-context-src in the a-frame.log logging macros if a log-context is already set do not override it
the default set of global-interceptors when no others are specified at router construction - handles unhandled errors and does all fx
the default set of global-interceptors when no others are specified at router construction - handles unhandled errors and does all fx
an interceptor to extract coeffects. must be at the head of the chain, because this breaks the interceptor-context
an interceptor to extract coeffects. must be at the head of the chain, because this breaks the interceptor-context
very minimal set of global interceptors which only handles otherwise unhandled errors - use as global-interceptors when you don't want any fx processed
very minimal set of global interceptors which only handles otherwise unhandled errors - use as global-interceptors when you don't want any fx processed
(modify-interceptors-for-coeffects n interceptors)an interceptor modifier which
an interceptor modifier which
- removes n (default 1) interceptors completely from the and of the chain
- removes all :leave and :error fns from the remaining interceptors
- inserts a new interceptor at the beginning of the chain which
extracts coeffects from the contexta proxy interceptor which removes ::leave and ::error handlers from the proxied interceptor
to do this the proxy interceptor defines only an ::enter fn and accepts an InterceptorSpec for the proxied interceptor
a proxy interceptor which removes ::leave and ::error handlers from the proxied interceptor to do this the proxy interceptor defines only an ::enter fn and accepts an InterceptorSpec for the proxied interceptor
(set-log-context log-context-data-spec)set a log-context based on the provided data-spec
e.g.
{:request-id #cofx-path [:yapster.api :request-id]}
will cause "[request-id:<request-id>]" sections to be logged in a-frame error reports
set a log-context based on the provided data-spec
e.g.
{:request-id #cofx-path [:yapster.api :request-id]}
will cause "[request-id:<request-id>]" sections to
be logged in a-frame error reportsset a log context - either with data, or if no data is provided then {:id <uuid>} will be used
set a log context - either with data, or if no data
is provided then {:id <uuid>} will be usedan interceptor which logs a useful report for an error
an interceptor which logs a useful report for an error
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 |