This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-17
Channels
- # announcements (12)
- # babashka (27)
- # beginners (65)
- # biff (8)
- # calva (22)
- # clj-kondo (1)
- # clj-otel (5)
- # clojure (65)
- # clojure-europe (127)
- # clojure-nl (1)
- # clojure-norway (11)
- # clojure-portugal (2)
- # clojure-uk (2)
- # clojurescript (18)
- # cursive (5)
- # data-science (3)
- # datahike (14)
- # datascript (3)
- # datomic (7)
- # deps-new (11)
- # emacs (31)
- # exercism (1)
- # fulcro (1)
- # honeysql (3)
- # hyperfiddle (38)
- # introduce-yourself (4)
- # leiningen (2)
- # malli (20)
- # meander (2)
- # missionary (3)
- # off-topic (4)
- # pathom (3)
- # practicalli (2)
- # reagent (5)
- # releases (1)
- # sci (1)
- # shadow-cljs (9)
- # xtdb (8)
I think I need to use close-otel-sdk! when restarting a system including otel, but I get this when restarting:
Execution error (Throwable) at io.opentelemetry.api.GlobalOpenTelemetry/set (GlobalOpenTelemetry.java:107).
As noted in the https://cljdoc.org/d/com.github.steffan-westcott/clj-otel-sdk/0.1.5/api/steffan-westcott.clj-otel.sdk.otel-sdk#init-otel-sdk!, init-otel-sdk!
may be evaluated once only. This is due to a limitation of the underlying opentelemetry-java
implementation, which permits the https://www.javadoc.io/static/io.opentelemetry/opentelemetry-api/1.13.0/io/opentelemetry/api/GlobalOpenTelemetry.html#set(io.opentelemetry.api.OpenTelemetry)`OpenTelemetry`https://www.javadoc.io/static/io.opentelemetry/opentelemetry-api/1.13.0/io/opentelemetry/api/GlobalOpenTelemetry.html#set(io.opentelemetry.api.OpenTelemetry).
Thanks! I assumed that once-evaluated means it needs to be closed..
Unless you are using programmatic configuration of the SDK, the only clj-otel
module you should be using in your application is clj-otel-api
. There is no need to also use clj-otel-sdk
. If you are just getting started using OpenTelemetry, I strongly recommend https://cljdoc.org/d/com.github.steffan-westcott/clj-otel-api/0.1.5/doc/guides#_run_with_the_opentelemetry_auto_instrumentation_agent, as this is by far the easiest of the https://cljdoc.org/d/com.github.steffan-westcott/clj-otel-api/0.1.5/doc/guides#_configure_and_run_an_application_with_telemetry. See the https://github.com/steffan-westcott/clj-otel/tree/0.1.5#quickstart for an overview on what to do.
Yep, I did the tutorials, programmatic seems better for us as I didn't find use in much of the attributes that the agent adds, and it complicates deployment with the extra jar