Overview

Automatically instrument processes on a Linux host with the Dash0 OpenTelemetry distributions, installed as DEB and RPM packages.

Install the dash0-opentelemetry system package, and every Java, .NET, Node.js, Python and Ruby application on a Linux host sends its telemetry to Dash0. You don't change the applications' code, their start commands or their service definitions, and there is no agent to wire into each service.

The packages put the OpenTelemetry injector and the Dash0 distributions of the OpenTelemetry SDKs on the host. From then on, the injector instruments every process that starts, with the distribution for its runtime. They come as DEB and RPM packages for Debian, Ubuntu, Fedora, RHEL and Amazon Linux 2023.

The packages instrument processes that run directly on the host, not in containers. On Kubernetes, use the Dash0 operator instead.

Getting started

1. Add the Dash0 repository and install the packages

The commands below need curl, and sudo or a root shell. Install curl first if the host does not have it.

On a Debian or Ubuntu host:

sudo curl -fsSL https://packages.dash0.com/dash0-archive-keyring.pgp \
  -o /usr/share/keyrings/dash0-archive-keyring.pgp
sudo tee /etc/apt/sources.list.d/dash0.sources > /dev/null <<'EOF'
Types: deb
URIs: https://packages.dash0.com/apt
Suites: stable
Components: main
Signed-By: /usr/share/keyrings/dash0-archive-keyring.pgp
EOF
sudo apt-get update && sudo apt-get install dash0-opentelemetry

On a Fedora, RHEL or Amazon Linux 2023 host:

sudo mkdir -p /etc/pki/rpm-gpg
sudo curl -fsSL https://packages.dash0.com/dash0.asc \
  -o /etc/pki/rpm-gpg/RPM-GPG-KEY-dash0
sudo tee /etc/yum.repos.d/dash0.repo > /dev/null <<'EOF'
[dash0]
name=Dash0
baseurl=https://packages.dash0.com/rpm/packages
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dash0
EOF
sudo dnf install dash0-opentelemetry
Note

On an RPM host that already has the upstream opentelemetry-injector, replacing it with dash0-injector in one transaction leaves nothing instrumented until the injector package is reinstalled. See the RPM limitation for how to avoid it.

2. Configure where telemetry goes

Set the Dash0 endpoint and your auth token in /etc/opentelemetry/injector/default_env.conf:

OTEL_EXPORTER_OTLP_ENDPOINT=<OTLP via HTTP endpoint>
OTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer%20<auth token>,Dash0-Dataset=<dataset>
Note

The Linux packages integration in Dash0  shows this file with your endpoint, auth token and dataset filled in.

Write the space in Bearer <token> as %20. The injector applies this file to every process it instruments, so restart the processes for the settings to take effect. A variable set in this file replaces the value a process sets itself, for example in its systemd unit, so set only what applies to every process on the host here. The Injector page and each language page describe the settings in detail.

How the packages fit together

PackagePageWhat it contains
dash0-opentelemetrydash0-opentelemetryMetapackage: pulls in the injector, the keyring and every language package
dash0-injectorInjectorThe OpenTelemetry injector, built to pass DASH0_ environment variables through to the processes it instruments
dash0-dotnet-autoinstrumentation.NETThe Dash0 distribution of the OpenTelemetry .NET SDK and automatic instrumentations
dash0-java-autoinstrumentationJavaThe Dash0 distribution of the OpenTelemetry Java agent
dash0-nodejs-autoinstrumentationNode.jsThe Dash0 distribution of the OpenTelemetry Node.js SDK and automatic instrumentations
dash0-python-autoinstrumentationPythonThe Dash0 distribution of the OpenTelemetry Python SDK and automatic instrumentations
dash0-ruby-autoinstrumentationRubyThe Dash0 distribution of the OpenTelemetry Ruby SDK and automatic instrumentations
dash0-keyringKeyringThe Dash0 signing certificate and the repository definitions for apt and dnf

dash0-opentelemetry depends on dash0-injector and dash0-keyring, and recommends the .NET, Java, Node.js, Python and Ruby automatic instrumentation packages

Installing only automatic instrumentations for selected languages

dash0-opentelemetry recommends all language packages, so apt and dnf install all of them by default. To install the support for only some languages, skip the recommended packages and list the languages you want explicitly.

On a Debian or Ubuntu host:

sudo apt-get install --no-install-recommends dash0-opentelemetry dash0-java-autoinstrumentation

On a Fedora, RHEL or Amazon Linux 2023 host:

sudo dnf install --setopt=install_weak_deps=False dash0-opentelemetry dash0-java-autoinstrumentation

Configuration

Each language package ships an OpenTelemetry declarative configuration  file at /etc/opentelemetry/<language>/otel-config.yaml. When OTEL_CONFIG_FILE is unset or empty, the distribution reads this file, so it configures every instrumented process by default. The file takes the endpoint, the auth token and the other common settings from the OTEL_ variables in default_env.conf, so most hosts never edit it. Each language page describes what its file contains, and which settings it keeps or replaces.

Setting OTEL_CONFIG_FILE

To use a file of your own for one application, set OTEL_CONFIG_FILE to its path in the systemd unit or the wrapper that starts that application. Do not set it in default_env.conf. The injector applies that file to every process it instruments, whatever its language, so every distribution on the host then reads the same file instead of its own. A file names resource detectors that only one SDK knows, and the other SDKs fail in different ways:

  • A Java process does not start its agent, runs uninstrumented and exits zero.
  • A Node.js or Python process prints one warning on stderr and exports nothing.
  • A Ruby process logs Config: unknown resource detector, keeps exporting, and loses its Dash0 detectors, so its telemetry arrives under unknown_service.
  • A .NET process logs Ignoring unknown resource detector in its agent log, keeps exporting, and loses the detectors the file does not name.

Propagators

Every shipped file declares tracecontext, baggage and xray under propagator, in that order, which is what the distributions use without a configuration file. A configuration file never reads OTEL_PROPAGATORS, so to turn off X-Ray propagation, remove xray from the file's propagator list.

The order matters. The composite propagator extracts in order, and the last propagator that finds a valid context wins. With xray last, a request carrying both a traceparent and an X-Amzn-Trace-Id with a Parent continues the X-Ray trace. An X-Amzn-Trace-Id without a Parent, which an AWS load balancer adds to a request that arrived without one, is rejected by the X-Ray extractor, and the traceparent context is kept. On the way out, every propagator injects, so outgoing requests carry both headers.

Upgrades, removal and the upstream packages' files

The files are conffiles, so the package manager keeps an edited copy:

  • Upgrade: an edited file stays in place. When a new version also changes the shipped file, dpkg asks which one to keep, and rpm writes the new one to otel-config.yaml.rpmnew.
  • Removal on an RPM host: an edited file is renamed to otel-config.yaml.rpmsave. Installing the package again writes the shipped file and does not restore otel-config.yaml.rpmsave.
  • Removal on a DEB host: an edited file stays in place, and installing the package again keeps it.

The upstream OpenTelemetry packages for Java, .NET, Node.js and Python ship a file at the same path, which their SDKs read only when OTEL_CONFIG_FILE names it. There is no upstream Ruby package. When a Dash0 package replaces an upstream one, an unedited upstream file is replaced by the Dash0 one. An edited upstream file stays in place, and the Dash0 file is written beside it:

Where the Dash0 file goes
dpkgotel-config.yaml.dpkg-dist, or wherever you choose at the conffile prompt, which defaults to keeping the old file
rpmotel-config.yaml.rpmnew, with one warning: line in the output

The dpkg prompt is dpkg's own, not debconf's, so DEBIAN_FRONTEND=noninteractive does not answer it, and an unattended apt-get install fails with end of file on stdin at conffile prompt. Pass -o Dpkg::Options::=--force-confold to keep the edited file, or -o Dpkg::Options::=--force-confnew to take the Dash0 one, which leaves the edited file at otel-config.yaml.dpkg-old.

The distribution reads whichever file ends up at the path on the next process start, so merge your edits straight away. Look in /etc/opentelemetry/<language>/ for otel-config.yaml.dpkg-dist, otel-config.yaml.dpkg-old or otel-config.yaml.rpmnew, and merge your edits into the Dash0 file. Switching back to an upstream package disposes of the files in the same way, with the roles reversed.

Last updated: