Functions that operate on io.opentelemetry.api.OpenTelemetry
, the
entrypoint to telemetry functionality.
Functions that operate on `io.opentelemetry.api.OpenTelemetry`, the entrypoint to telemetry functionality.
(get-default-otel!)
Gets the default OpenTelemetry
instance declared and used by clj-otel
. If
no instance has been previously set, this falls back to the global instance
declared by OpenTelemetry Java.
Gets the default `OpenTelemetry` instance declared and used by `clj-otel`. If no instance has been previously set, this falls back to the global instance declared by OpenTelemetry Java.
(get-global-otel!)
Gets the global OpenTelemetry
instance declared by OpenTelemetry Java. If
no instance has been previously set, this will attempt to configure an
instance using the OpenTelemetry Java SDK autoconfigure module if present on
the classpath. The configured instance (or a no-op instance if
autoconfiguration failed or otherwise did not occur) will also be set as the
global instance i.e. this function is side-effecting if no instance was
previously set.
Gets the global `OpenTelemetry` instance declared by OpenTelemetry Java. If no instance has been previously set, this will attempt to configure an instance using the OpenTelemetry Java SDK autoconfigure module if present on the classpath. The configured instance (or a no-op instance if autoconfiguration failed or otherwise did not occur) will also be set as the global instance i.e. this function is side-effecting if no instance was previously set.
(get-noop)
Gets a no-op OpenTelemetry
instance.
Gets a no-op `OpenTelemetry` instance.
(get-text-map-propagator)
(get-text-map-propagator open-telemetry)
Gets the text map propagator of an OpenTelemetry
instance open-telemetry
or the default OpenTelemetry
instance.
Gets the text map propagator of an `OpenTelemetry` instance `open-telemetry` or the default `OpenTelemetry` instance.
(set-default-otel! otel)
Sets the default OpenTelemetry
instance declared and used by clj-otel
.
Returns otel
.
Sets the default `OpenTelemetry` instance declared and used by `clj-otel`. Returns `otel`.
(set-global-otel! open-telemetry)
Sets the global OpenTelemetry
instance declared by OpenTelemetry Java. The
global instance may be set once only. Any attempts to set the global instance
more than once will result in error.
Sets the global `OpenTelemetry` instance declared by OpenTelemetry Java. The global instance may be set once only. Any attempts to set the global instance more than once will result in error.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close