Effects of running application with and without the Java Agent #10890
-
|
Hi all! I would like to run my application with or without the Java agent depending on the deployment. Is there a way to disable tracing without adding logic to check if the agent is running? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
When using agent you get access to |
Beta Was this translation helpful? Give feedback.
When using agent you get access to
OpenTelemetryinstance by callingGlobalOpenTelemetry.get(). If the agent is not running and you have not configured a globalOpenTelemetryinstance yourself it will return a no-op instance.