Container platforms
Questions about Kubernetes, OpenShift, Docker, and more.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disabling OpenTelemetry Span Sensor for individual workloads

Colin_Spratt
Frequent Guest

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?

1 REPLY 1

Julius_Loman
DynaMight Legend
DynaMight Legend

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.

Dynatrace Ambassador | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts