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:

GoalSetting
Disable one instrumentationOTEL_INSTRUMENTATION_<NAME>_ENABLED=false
Disable all by defaultOTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED=false
Disable the agent entirelyOTEL_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: