Auto-instrumentation
The Java libraries and frameworks instrumented automatically, which come unchanged from the pinned upstream OpenTelemetry Java agent.
Note: This page is auto-generated from the opentelemetry-java-distribution repository.
This distribution is built on the upstream OpenTelemetry Java agent 2.33.1 and instruments the same libraries. See upstream's list of supported libraries for that version.
Enabling and disabling
The upstream settings work unchanged:
| Goal | Setting |
|---|---|
| Disable one instrumentation | OTEL_INSTRUMENTATION_<NAME>_ENABLED=false |
| Disable all by default | OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED=false |
| Disable the agent entirely | OTEL_JAVAAGENT_ENABLED=false |
Find <NAME> in upstream's list of instrumentation names . For example, OTEL_INSTRUMENTATION_JDBC_ENABLED=false turns off JDBC.
To enable only certain instrumentations, disable all by default and then set OTEL_INSTRUMENTATION_<NAME>_ENABLED=true for each one you want.
Last updated: