25 Nov 2025 03:12 PM
Our team is looking for a method to disable OpenTelemetry Span Sensor for individual workloads in a Kubernetes environment. By default, we'd like the feature to be enabled for all deployed java processes, giving teams the ability to turn it off if they manually instrument OpenTelemetry.
However, we can't identify any methods outside of the UI (i.e. via annotations or environment variables, like the technologies annotation) to disable the Span Sensor's dependency injection. We're aware of the UI capability to turn off injection for an individual workload, but we'd like to drive this injection setting via our deployment pipeline.
Any ideas if something like this exists?
Solved! Go to Solution.
25 Nov 2025 04:38 PM
Currently you can use settings API to manage the setting on individual workloads. Unfortunately, the workload has to exist in Dynatrace so you can know it's entityId. Then with setting api you can disable the OneAgent features. It's the same setting that you see in the UI.
Featured Posts