(disable-tracing!)
Alters the root of tracing-enabled to false
Alters the root of *tracing-enabled* to false
(enable-tracing!)
Alters the root of tracing-enabled to true
Alters the root of *tracing-enabled* to true
(set-global-tracer! tracer)
Alters (mutates) the root of the tracer dynamic var to refer to the supplied tracer. Complains if tracer is not either a Tracer or null.
Alters (mutates) the root of the *tracer* dynamic var to refer to the supplied tracer. Complains if tracer is not either a Tracer or null.
(traced fn-form)
This function is designed for use with the morphe library. When triggered, this wraps each
fn body with a tracing
macro using an operation name of the form:
<namespace>/<fn-name>:<params>
For instance:
"clojure.core/+:[x y & more]"
This function is designed for use with the morphe library. When triggered, this wraps each fn body with a `tracing` macro using an operation name of the form: <namespace>/<fn-name>:<params> For instance: "clojure.core/+:[x y & more]"
(tracing operation-name & body)
When tracing is enabled, this creates a span with the given operation name (as the child of any previous span on the stack), pushes it onto the span stack, and executes the body in the context of that span. Completes the span and pops it from the stack on exit.
When tracing is enabled, this creates a span with the given operation name (as the child of any previous span on the stack), pushes it onto the span stack, and executes the body in the context of that span. Completes the span and pops it from the stack on exit.
(tracing-with-span span & body)
When tracing is enabled, this pushes the provided span onto the span stack; then the body is executed in the context of that span. Completes the span and pops it from the stack on exit.
When tracing is enabled, this pushes the provided span onto the span stack; then the body is executed in the context of that span. Completes the span and pops it from the stack on exit.
(tracing-with-spanbuilder builder & body)
When tracing is enabled, this specifies a spanbuilder which is used to create a span and push it onto the span stack; then the body is executed in the context of that span. Completes the span and pops it from the stack on exit.
When tracing is enabled, this specifies a spanbuilder which is used to create a span and push it onto the span stack; then the body is executed in the context of that span. Completes the span and pops it from the stack on exit.
(with-tracer tracer & body)
When tracing is enabled, this binds the global tracer var to the supplied tracer and executes the body in that context.
When tracing is enabled, this binds the global tracer var to the supplied tracer and executes the body in that context.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close