Liking cljdoc? Tell your friends :D

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

Macros for creating spans around Manifold deferreds. To use this namespace, add dependency manifold/manifold.

Macros for creating spans around Manifold deferreds. To use this namespace,
add dependency `manifold/manifold`.
raw docstring

async-bound-d-spancljmacro

(async-bound-d-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 deferred value. The bound context is restored to its original value and the span is ended when the body deferred yields a value. Returns a deferred that yields 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 deferred
value. The bound context is restored to its original value and the span is
ended when the `body` deferred yields a value. Returns a deferred that
yields the same value.
sourceraw docstring

d-span-bindingcljmacro

(d-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 deferred value. The span is ended when the body deferred yields a value. Returns a deferred that yields 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 deferred
value. The span is ended when the `body` deferred yields a value. Returns a
deferred that yields 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