About the Dash0 OpenTelemetry .NET Distribution

Overview of the Dash0 OpenTelemetry distribution for .NET — zero-code instrumentation for .NET 6 and later on Linux, for glibc and musl.

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

The Dash0 OpenTelemetry .NET Distribution is an opinionated, zero-code OpenTelemetry  distribution for .NET on Linux. It packages Dash0's fork of the upstream opentelemetry-dotnet-instrumentation  project into ready-to-mount archives for x64 and arm64, for both glibc and musl. The archives are published as GitHub Releases . No code changes are required in the instrumented application.

How it works

The distribution uses the .NET CoreCLR profiler API and a .NET startup hook to load the OpenTelemetry auto-instrumentation into the application process. Both are switched on with environment variables, which the instrument.sh script in each archive sets for you:

export OTEL_DOTNET_AUTO_HOME=/opt/dash0/otel-dotnet-auto
. "${OTEL_DOTNET_AUTO_HOME}/instrument.sh"
dotnet YourApp.dll

Any .NET process started from that shell is instrumented. In Kubernetes, the Dash0 operator sets the same variables for you, see Kubernetes injection.

Key properties

  • Zero-code instrumentation. No NuGet packages to add, no code to change, no rebuild of the application.
  • Traces, metrics, and logs. All three signals are exported over OTLP, by default with HTTP/protobuf.
  • Broad library coverage. All instrumentations that upstream ships are enabled, including ASP.NET Core, HttpClient, gRPC, Entity Framework Core, ADO.NET, StackExchange.Redis, MongoDB, Kafka, and RabbitMQ.
  • .NET 6 and .NET 7 support. The Dash0 fork restores support for .NET 6 and .NET 7, which upstream has dropped, including ASP.NET Core server spans on .NET 6.
  • glibc and musl. Separate archives cover glibc-based images (for example Debian and Ubuntu) and musl-based images (Alpine).
  • Standard OTEL_* variables honored. All variables from the upstream documentation work as documented. One default differs from upstream: the propagators are tracecontext,baggage,xray instead of tracecontext,baggage, see Propagators.
  • Configuration file. The instrumentation can be configured with a YAML file named by OTEL_CONFIG_FILE, or from /etc/opentelemetry/dotnet/otel-config.yaml when that file exists, see Configuration file.

Intended use

The distribution is primarily intended to be injected into .NET workloads by the Dash0 Kubernetes operator , which instruments them without any application changes. It can also be used directly, see Getting started.

Requirements

  • Linux on x86_64 or aarch64.
  • glibc 2.23 or later, or musl 1.2 or later.
  • .NET 6.0 or later. Each release is tested end to end on .NET 6.0, 7.0, 8.0, 9.0, and 10.0.

The distribution ships Linux archives only. It does not support .NET Framework or Windows.

Versioning

Each release records the exact commit of dash0hq/opentelemetry-dotnet-instrumentation  that its archives were built from. The release notes also name the OpenTelemetry .NET SDK version and the upstream opentelemetry-dotnet-instrumentation release that the build is based on.

Last updated: