clj-otel

Dimitar Uzunov 2023-02-17T10:15:39.198159Z

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 Uzunov 2023-02-17T10:26:29.747829Z

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

steffan 2023-02-17T10:40:11.042669Z

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 Uzunov 2023-02-17T11:42:54.158569Z

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