Using OpenTelemetry with Dynatrace

  • Overview
  • 3-min read

This guide provides step-by-step instructions for implementing OpenTelemetry observability with Dynatrace. Whether you're manually instrumenting your applications or using an instrumentation that is provided by OpenTelemetry, you'll find the information you need to get up and running quickly.

About OpenTelemetry instrumentation

Instrumentation is the process of adding telemetry support to your applications.

The guided walkthroughs provide language-specific details on how to

  • Integrate OpenTelemetry.
  • Use different instrumentation methods.
  • Record individual telemetry signals.
  • Send data to Dynatrace.

For tracing distributed services, pay particular attention to context propagation.

Send data to Dynatrace

To aggregate, analyze, monitor, and store your telemetry data, you need to send it to the Dynatrace backend.

OTel ingest via OTLP

Choose the deployment option that best aligns with your observability strategy:

  • Direct OTLP ingestion or standard OpenTelemetry Collector.

    Ideal for teams with existing OpenTelemetry investments who want to integrate Dynatrace seamlessly. Learn more about Export with OTLP.

  • Dynatrace Collector.

    Ideal for teams adopting OpenTelemetry as their primary observability strategy. Learn more about using Dynatrace Collector.

  • Dynatrace OneAgent.

    Ideal for teams that need comprehensive agent-based monitoring capabilities and deep system insights. Learn more about Dynatrace OneAgent.

    OneAgent supports trace ingest only.

Best practices

Just started with one signal? Don't stop there, maximize your observability by implementing all three telemetry signals for complete visibility into your applications:

  • If you already have traces, add metrics and logs for full request visibility.
  • If you already have metrics, add traces and logs for actionable performance insights.
  • If you already have logs, add traces and metrics to connect events with performance data.

You can use either the standard OpenTelemetry Collector or Dynatrace Collector. Keep in mind that Dynatrace Collector offers easier setup and dedicated support.

Demo app

You can use Astronomy Shop, the OpenTelemetry demo app, to run an example of a distributed system that's instrumented with OpenTelemetry.

Read more about Astronomy Shop at Running OpenTelemetry demo app Astronomy Shop with Dynatrace, and get the code at the opentelemetry-demo GitHub repo.

What's next?

Now that you have already implemented the first steps, read on to explore how to get maximum value out of your telemetry data with Dynatrace:

Related tags
Application Observability