Liking cljdoc? Tell your friends :D
Clojure only.

steffan-westcott.clj-otel.sdk.autoconfigure

Configuration of the OpenTelemetry SDK with environment variables and system properties. See https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure for configuration options.

Configuration of the OpenTelemetry SDK with environment variables and system
properties. See https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure
for configuration options.
raw docstring

init-otel-sdk!clj

(init-otel-sdk!)
(init-otel-sdk!
  {:keys [set-as-default set-as-global register-shutdown-hook]
   :or {set-as-default true set-as-global false register-shutdown-hook true}})

Returns an OpenTelemetrySdk instance, configured by the OpenTelemetry Java SDK autoconfigure module. Optionally also sets the configured SDK as the default OpenTelemetry instance used by clj-otel and Java OpenTelemetry and registers a shutdown hook to close it.

See steffan-westcott.clj-otel.sdk.otel-sdk/close-otel-sdk! for an alternative to using the shutdown hook.

Takes an option map as follows:

keydescription
:set-as-defaultIf true, sets the configured SDK instance as the default OpenTelemetry instance declared and used by clj-otel (default: true).
:set-as-globalIf true, sets the configured SDK instance as the global OpenTelemetry instance declared by Java OpenTelemetry (default: false).
:register-shutdown-hookIf true, registers a JVM shutdown hook to close the configured SDK instance (default: true).
Returns an `OpenTelemetrySdk` instance, configured by the OpenTelemetry Java
SDK autoconfigure module. Optionally also sets the configured SDK as the
default `OpenTelemetry` instance used by `clj-otel` and Java OpenTelemetry
and registers a shutdown hook to close it.

See `steffan-westcott.clj-otel.sdk.otel-sdk/close-otel-sdk!` for an
alternative to using the shutdown hook.

Takes an option map as follows:

| key                     | description |
|-------------------------|-------------|
|`:set-as-default`        | If true, sets the configured SDK instance as the default `OpenTelemetry` instance declared and used by `clj-otel` (default: `true`).
|`:set-as-global`         | If true, sets the configured SDK instance as the global `OpenTelemetry` instance declared by Java OpenTelemetry (default: `false`).
|`:register-shutdown-hook`| If true, registers a JVM shutdown hook to close the configured SDK instance (default: `true`).
sourceraw docstring

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

× close