Liking cljdoc? Tell your friends :D

opencensus-clojure.trace


add-tagclj

(add-tag k v)

Adds a tag on the current span

  • :k tag name
  • :v tag value. Natively supported types are long, bool or string
Adds a tag on the current span

- `:k` tag name
- `:v` tag value. Natively supported types are long, bool or string
raw docstring

add-tagsclj

(add-tags tags)

See add-tag`.

  • :tags a hash of key-value pairs you'd pass to add-tag.
See [[add-tag]]`.

- `:tags` a hash of key-value pairs you'd pass to `add-tag`.
raw docstring

configure-tracerclj

(configure-tracer {:keys [probability max-annotations max-attributes max-links
                          max-message-events]})

Configure the underlying tracer. Takes

  • :probability
  • :max-annotations
  • :max-attributes
  • :max-links
  • :max-message-events

all of which are proxied through to the TraceParams class.

Configure the underlying tracer. Takes

  - `:probability`
  - `:max-annotations`
  - `:max-attributes`
  - `:max-links`
  - `:max-message-events`

all of which are proxied through to the [TraceParams](https://static.javadoc.io/io.opencensus/opencensus-api/0.13.0/io/opencensus/trace/config/TraceParams.html) class.
raw docstring

make-downstream-headersclj

(make-downstream-headers)

Produces B3 style headers for the current span, to be passed down into further RPCs for distributed tracing.

Produces B3 style headers for the current span, to be passed down into further RPCs for distributed tracing.
raw docstring

spancljmacro

(span span-name code)
(span span-name code remote)

Creates a traced span. Takes a name and a form to be traced, or, additionally, a remote SpanContext that is a remote parent of the one you're starting.

It is expected that clients should mostly use the 2-arg form and the 3-ard form is called from the Ring middleware handling the deserialization of the context from B3 headers, however, if you're not using Ring, this might be useful.

Creates a traced span. Takes a name and a form to be traced, or, additionally, a remote `SpanContext` that is a
remote parent of the one you're starting.

It is expected that clients should mostly use the 2-arg form and the 3-ard form is called from the Ring middleware
handling the deserialization of the context from B3 headers, however, if you're not using Ring, this might be useful.
raw docstring

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

× close