Liking cljdoc? Tell your friends :D

opentracing-clj.core

Functions for creating and manipulating spans for opentracing.

Functions for creating and manipulating spans for opentracing.
raw docstring

*tracer*clj

An Tracer object representing the standard tracer for trace operations.

Defaults to the value returned by GlobalTracer.get().

An Tracer object representing the standard tracer for trace operations.

Defaults to the value returned by GlobalTracer.get().
sourceraw docstring

active-spanclj

(active-span)

Returns the current active span.

Returns the current active span.
sourceraw docstring

baggage-itemclj

(baggage-item key)
(baggage-item span key)

Returns the value of the baggage item identified by the given key, or nil if no such item could be found.

Returns the value of the baggage item identified by the given key, or
nil if no such item could be found.
sourceraw docstring

contextclj

(context)
(context span)

Returns the associated SpanContext of a span.

Returns the associated SpanContext of a span.
sourceraw docstring

finishclj

(finish)
(finish span)
(finish span timestamp)

Sets the end timestamp to now and records the span. Can also supply an explicit timestamp in microseconds.

Sets the end timestamp to now and records the span.  Can also supply an explicit timestamp in microseconds.
sourceraw docstring

logclj

(log v)
(log span v)
(log span v timestamp)

Logs value v on the span.

Can also supply an explicit timestamp in microseconds.

Logs value v on the span.

Can also supply an explicit timestamp in microseconds.
sourceraw docstring

set-baggage-itemclj

(set-baggage-item key val)
(set-baggage-item span key val)

Sets a baggage item on the Span as a key/value pair.

Sets a baggage item on the Span as a key/value pair.
sourceraw docstring

set-baggage-itemsclj

(set-baggage-items map)
(set-baggage-items span map)

Sets baggage items on the Span using key/value pairs of a map.

Note: Will automatically convert keys into strings.

Sets baggage items on the Span using key/value pairs of a map.

Note: Will automatically convert keys into strings.
sourceraw docstring

set-operation-nameclj

(set-operation-name name)
(set-operation-name span name)

Sets the string name for the logical operation this span represents.

Sets the string name for the logical operation this span represents.
sourceraw docstring

set-tagclj

(set-tag key value)
(set-tag span key value)

Sets a key/value tag on the Span.

Sets a key/value tag on the Span.
sourceraw docstring

set-tagsclj

(set-tags m)
(set-tags s m)

Sets/adds tags on the Span using key/value pairs of a map.

Automatically converts keys into strings. Overrides any existing tags with the same keys.

Sets/adds tags on the Span using key/value pairs of a map.

Automatically converts keys into strings.  Overrides any existing tags with the same keys.
sourceraw docstring

with-active-spancljmacro

(with-active-span sym & body)

Convenience macro for setting sym to the current active span. Will evaluate to nil if there are no active-spans.

Convenience macro for setting sym to the current active span.  Will
evaluate to nil if there are no active-spans.
sourceraw docstring

with-spancljmacro

(with-span binding & body)

Evaluates body in the scope of a generated span.

binding => [span-sym span-init-spec]

span-init-spec must evaluate at runtime to a value conforming to the :opentracing/span-init spec.

Evaluates body in the scope of a generated span.

binding => [span-sym span-init-spec]

span-init-spec must evaluate at runtime to a value conforming to
the :opentracing/span-init spec.
sourceraw docstring

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

× close