Liking cljdoc? Tell your friends :D

taoensso.telemere.open-telemetry

OpenTelemetry handler using `opentelemetry-java`,
Ref. <https://github.com/open-telemetry/opentelemetry-java>,
     <https://javadoc.io/doc/io.opentelemetry/opentelemetry-api/latest/index.html>

get-default-providersclj

(get-default-providers)
Experimental, subject to change. Feedback welcome!

Returns map with keys:
  :logger-provider - default `io.opentelemetry.api.logs.LoggerProvider`
  :tracer-provider - default `io.opentelemetry.api.trace.TracerProvider`
  :via             - ∈ #{:sdk-extension-autoconfigure :global}

Uses `AutoConfiguredOpenTelemetrySdk` when possible, or
`GlobalOpenTelemetry` otherwise.

See the relevant `opentelemetry-java` docs for details.
source

handler:open-telemetryclj

(handler:open-telemetry)
(handler:open-telemetry {:keys [logger-provider tracer-provider max-span-msecs]
                         :or {logger-provider :default
                              tracer-provider :default
                              max-span-msecs (enc/msecs :mins 120)}})
Highly experimental, possibly buggy, and subject to change!!
Feedback and bug reports very welcome! Please ping me (Peter) at:
  <https://www.taoensso.com/telemere> or
  <https://www.taoensso.com/telemere/slack>

Needs `opentelemetry-java`,
  Ref. <https://github.com/open-telemetry/opentelemetry-java>.

Returns a signal handler that:
  - Takes a Telemere signal (map).
  - Emits signal  data to configured `io.opentelemetry.api.logs.Logger`
  - Emits tracing data to configured `io.opentelemetry.api.logs.Tracer`

Options:
  `:logger-provider` - ∈ #{nil :default <io.opentelemetry.api.logs.LoggerProvider>}  [1]
  `:tracer-provider` - ∈ #{nil :default <io.opentelemetry.api.trace.TracerProvider>} [1]
  `:max-span-msecs`  - (Advanced) Longest tracing span to support in milliseconds
                       (default 120 mins). If recorded spans exceed this max, emitted
                       data will be inaccurate. Larger values use more memory.

[1] See `get-default-providers` for more info
source

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

× close