Fork me on GitHub
#clj-otel
<
2023-02-17
>
Dimitar Uzunov10:02:39

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).

Dimitar Uzunov10:02:29

Thanks! I assumed that once-evaluated means it needs to be closed..

steffan10:02:11

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.

Dimitar Uzunov11:02:54

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