Liking cljdoc? Tell your friends :D

steffan-westcott.clj-otel.api.trace.chan-span

Macros for creating spans around core.async channels that are settled with a single value, either a result or an exception. To use this namespace, add dependency org.clojure/core.async.

Macros for creating spans around core.async channels that are settled with
a single value, either a result or an exception. To use this namespace, add
dependency `org.clojure/core.async`.
raw docstring

async-bound-chan-spancljmacro

(async-bound-chan-span span-opts & body)

Asynchronously starts a new span, sets the bound context to the new context containing the span and evaluates body which is expected have a channel value. The bound context is restored to its original value and the span is ended when the body channel is settled (a result or exception is put on the channel). Returns a channel that settles with the same value.

Asynchronously starts a new span, sets the bound context to the new context
containing the span and evaluates `body` which is expected have a channel
value. The bound context is restored to its original value and the span is
ended when the `body` channel is settled (a result or exception is put on
the channel). Returns a channel that settles with the same value.
sourceraw docstring

chan-span-bindingcljmacro

(chan-span-binding [context span-opts] & body)

Asynchronously starts a new span, binds context to the new context containing the span and evaluates body which is expected have a channel value. The span is ended when the body channel is settled (a result or exception is put on the channel). Returns a channel that settles with the same value.

Asynchronously starts a new span, binds `context` to the new context
containing the span and evaluates `body` which is expected have a channel
value. The span is ended when the `body` channel is settled (a result or
exception is put on the channel). Returns a channel that settles with the
same value.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close