dd-trace-java icon indicating copy to clipboard operation
dd-trace-java copied to clipboard

DD_APM_TRACING_ENABLED does not work

Open jaime-costasinsua-ext-adv opened this issue 3 months ago • 0 comments

Tracer Version(s)

1.56.1

Java Version(s)

17

JVM Vendor

Oracle JDK

Bug Report

I'm using the LLM observability features of the Java SDK, but I'm not interested in APM tracing. I've set the env varDD_APM_TRACING_ENABLED to false, but traces are still being recorded. I've also tried with system property dd.apm.tracing-enabled, no luck there either.

Expected Behavior

According to the documentation, DD_APM_TRACING_ENABLED is expected to work in all SDKs. I'd expect this env var to properly disable APM tracing whilst still allowing the LLM Observability tracing to work.

Note that I've also tried using DD_TRACE_ENABLED, but this makes the methods in LLMObs fail with a NullPointerException.

Reproduction Code

No response