How to enable/disable opentelemetry tracing dynamically #5972
Replies: 2 comments 4 replies
-
This isn't something that is currently supported. Are you using the javaagent, or just manually configuring your own SDK? If the latter, you could keep two copies around, and swap usages between the no-op instance and the fully configured instance. If you're using the javaagent, I'll move this issue over to the instrumentation repository, where that code lives. |
Beta Was this translation helpful? Give feedback.
-
Thanks @jkwatson for the response, currently in Apache HBase we are using javaagent. It will be nice feature if Opentelemetry support dynamic enable/disable, so that it wont require process restart. |
Beta Was this translation helpful? Give feedback.
-
Dear folks,
How to enable/disable tracing dynamically without restarting the application service?
I tried to disable it dynamically using below APIs, it didnt work
GlobalOpenTelemetry.set(OpenTelemetry.noop());
GlobalOpenTelemetry.set(NoopOpenTelemetry.getInstance());
Any suggestion?
Beta Was this translation helpful? Give feedback.
All reactions