Functions for creating and manipulating spans for opentracing.
Functions for creating and manipulating spans for opentracing.
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().
(active-span)
Returns the current active span.
Returns the current active span.
(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.
(context)
(context span)
Returns the associated SpanContext of a span.
Returns the associated SpanContext of a span.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close