0

what to enable and disable java auto instrumentation done using otel java agent at runtime to avoid redeployment of service in case of issues. Any idea on how we can do this?

we can also do this if we have some way to access and modify tracer used by otel agent.

found nothing on internet

1 Answers1

2

You can disable the agent entirely with OTEL_JAVAAGENT_ENABLED=false.

Or you can have the javaagent install instrumentation, but disable the OpenTelemetry SDK with OTEL_SDK_DISABLED.

Or you can suppress specific instrumentation with OTEL_INSTRUMENTATION_[NAME]_ENABLED=false.

JackB
  • 555
  • 1
  • 4
  • 10