Liking cljdoc? Tell your friends :D

io.pedestal.tracing

Wrappers around Open Telemetry tracing.

Wrappers around Open Telemetry tracing.
raw docstring

*context*clj

The active OpenTelemetry context used as the parent of any created spans. If nil, then the span is created with the OpenTelemetry's default current context.

This is designed to be bound when a span is created so that new spans created subsequently in other threads (typically, asynchronous execution) can connect to the appropriate context. In those cases, OpenTelemetry's current context is not always accurate, as it is stored in a thread-local variable.

The active OpenTelemetry context used as the parent of any created spans.  If nil,
then the span is created with the OpenTelemetry's default current context.

This is designed to be bound when a span is created so that new spans created
subsequently in other threads (typically, asynchronous execution) can connect to the appropriate
context. In those cases, OpenTelemetry's current context is not always accurate, as it is stored
in a thread-local variable.
raw docstring

*tracing-source*clj


add-attributeclj

(add-attribute span attribute-key attribute-value)

Adds an attribute to a span, typically, to record response attributes such as the status code. This should not be called after the span has ended.

Adds an attribute to a span, typically, to record response attributes such as the status code.
This should not be called after the span has ended.
raw docstring

as-rootclj

(as-root builder)

Identifies the new span as a root span, with no parent. When this is not called, and span is active in the Open Telemetry context, the active span will be the parent of the new span when the span is started.

Identifies the new span as a root span, with no parent.  When this is not called, and span is active
in the Open Telemetry context, the active span will be the parent of the new span when the span is started.
raw docstring

create-spanclj

(create-span operation-name attributes)
(create-span tracing-source operation-name attributes)

Creates a new span builder, which allows configuration of the span prior to starting it.

Creates a new span builder, which allows configuration of the span prior to starting it.
raw docstring

end-spanclj

(end-span span)

Ends the span, which will set its termination time to current time. Every started span must be ended.

Returns nil.

Ends the span, which will set its termination time to current time.  Every started span
must be ended.

Returns nil.
raw docstring

make-context-currentclj

(make-context-current context)

Makes the context the current context, returning a no-args function to close the scope (restoring the prior current scope).

Makes the context the current context, returning a no-args function to close the scope (restoring the prior
current scope).
raw docstring

make-span-contextclj

(make-span-context span)

Creates a Context with the current context and the provided span.

Creates a Context with the current context and the provided span.
raw docstring

record-exceptionclj

(record-exception span e)

rename-spanclj

(rename-span span span-name)

set-status-codeclj

(set-status-code span status-code)

Set the status code of the span to either :ok, :error, or :unset.

Set the status code of the span to either :ok, :error, or :unset.
raw docstring

startclj

(start builder)

Builds the span from the span builder, starting and returning it.

Builds the span from the span builder, starting and returning it.
raw docstring

with-kindclj

(with-kind builder kind)

Updates the span builder to label the new span with a kind (:internal, :server, :client, :producer, or :consumer).

Updates the span builder to label the new span with a kind (:internal, :server, :client, :producer, or :consumer).
raw docstring

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

× close