Kubernetes Injection

How JVM workloads are instrumented under the Dash0 operator through the OpenTelemetry injector and JAVA_TOOL_OPTIONS, and what wiring this distribution in would involve.

Note: This page is auto-generated from the opentelemetry-java-distribution  repository.

The Dash0 operator does not use this distribution yet. It instruments JVM workloads with the upstream OpenTelemetry Java agent, which it adds through JAVA_TOOL_OPTIONS when the process starts. It also sets k8s.namespace.name, k8s.pod.name, k8s.pod.uid and k8s.container.name on every workload it instruments.

To use this distribution in a pod the operator does not instrument, add the agent jar to your image and start the JVM with it:

export JAVA_TOOL_OPTIONS="-javaagent:/opt/dash0/dash0-opentelemetry-javaagent.jar"

Do not do this in a pod the operator instruments, because the JVM would then load two agents. Resource detection explains how to set the Kubernetes attributes yourself.

Last updated: