Migrating from Datadog tracing libraries to OpenTelemetry

Replacing Datadog tracing libraries with OpenTelemetry is a code and pipeline change that can be staged, with the back end decided separately. This page explains what maps, which documented paths exist, and what drives the effort.

On this page

Moving off Datadog tracing libraries without changing your back end first

The instrumentation swap is separable from the back end decision, and that separation is the first thing to plan. Services instrumented with Datadog tracing libraries can move to the OpenTelemetry API and SDKs while data keeps flowing to Datadog, or to any other back end you choose later. OpenTelemetry is an observability framework and toolkit for generating, exporting and collecting telemetry, and it is not an observability backend, so storage and visualization stay with a separate tool. The effort depends on three things: how many services use Datadog libraries, how much custom instrumentation sits on top of auto-instrumentation, and how well trace continuity holds across services that are migrating at different times.

Start with a written inventory before any code changes. For each service, record the language and runtime, the Datadog library and version, whether tracing is automatic or hand-written, custom spans and tags, and the downstream services it calls. Note which dashboards and monitors depend on Datadog-specific span names, resource names and service tags, because those are what break when instrumentation changes. DeployOpen scopes the work from this inventory and agrees the scope in writing before work starts, so the quote follows from what you actually run. Ask for the scope to list each service, the instrumentation change, the verification steps and the handoff, and do not accept a single effort figure for the whole estate without that breakdown.

Confirm the back end route separately, because Datadog documents more than one way to send OpenTelemetry data to it. Its documentation describes the Datadog Agent with its DDOT Collector (which Datadog recommends), a standard OpenTelemetry Collector exporting over OTLP, direct OTLP ingestion, and the OpenTelemetry API with either the OpenTelemetry SDK or Datadog's SDK. Each route has different operational owners and different support boundaries, so check Datadog's OpenTelemetry documentation against your contract and your own Collector plans before you pick one. Keeping the back end decision open at this stage lets your team finish the instrumentation move first.

Which Datadog tracing capabilities map to OpenTelemetry and which need rework

This table compares common Datadog tracing SDK features with their OpenTelemetry API, SDK and Collector equivalents. Read each row as a starting point: confirm the exact behavior in the language SDK your services use, because support and defaults differ by language and by Datadog library version.

Datadog capabilityOpenTelemetry equivalentMigration effort and what to confirm
Spans and manual instrumentationTracer API and span creation in the OpenTelemetry SDKUsually a direct port of calls. Confirm how span start, end and error recording behave in each language SDK.
Tags and resource attributesSpan attributes and resource attributes, following semantic conventionsTag names often change. Dashboards and monitors keyed to Datadog tag names need a mapping table before cutover.
Auto-instrumentationZero-code agents or library instrumentation for the language runtimeCoverage differs by framework and version. Confirm the supported library list for each runtime before removing Datadog agents.
SamplingHead sampling in the SDK and tail sampling in the CollectorSampling decisions may move between services. Confirm how priority and sampling rates carry across the staged move.
Context propagationW3C Trace Context and baggage, with B3 or other formats where neededMixed propagation during the transition can break traces. Confirm which headers each service reads and writes.
Custom span helpers and wrappersCustom wrappers around the OpenTelemetry APIRequires rework because helper names and APM-specific options are Datadog-specific. Plan a shim layer if many services use them.
APM-only features such as service-level views, profiling and runtime metricsNo direct one-to-one equivalent in the OpenTelemetry API alone; depends on the back end you chooseTreat as rework. Confirm with the back end which views, profiling and runtime metrics it can reproduce from OTLP data.

Four documented ways Datadog accepts OpenTelemetry data

Datadog documents four routes for OpenTelemetry data, and each one places the Collector, the SDK and the Datadog Agent differently. The route you pick decides what you run, what you maintain and how easily you can move the back end later. Choose the route separately from the instrumentation swap, since the same OpenTelemetry API calls can feed any of them.

Datadog Agent with DDOT Collector

Datadog recommends this route. You keep the Datadog Agent on hosts and run its embedded DDOT Collector to receive OpenTelemetry data and forward it to Datadog. Your team must confirm which Agent version ships the DDOT Collector, which signals it covers in your setup, and how its configuration is managed across hosts. Keeping Datadog as the back end is the simplest fit here, but the Agent becomes a Datadog-specific component you operate.

Datadog OpenTelemetry docs

Standard Collector exporting over OTLP

Here you run the vendor-neutral OpenTelemetry Collector and configure its Datadog exporter, so data leaves your pipeline in the Datadog format. The Collector sits between your services and Datadog, which lets you add processing, redaction or a second destination without touching application code. Before choosing this route, confirm the exporter's current stability level and which Datadog features it supports for your signals.

Direct OTLP ingestion

Applications or a local Collector send OTLP directly to Datadog's intake, with no Collector in your own infrastructure for that path. This removes a component to run, but it moves buffering, retry and filtering decisions to the application or to a Collector you may not control. Ask Datadog which OTLP endpoints and API key handling apply to your site, and where secrets for those keys are stored.

OpenTelemetry API with either SDK

Your code calls the OpenTelemetry API and the SDK behind it is either the OpenTelemetry SDK or Datadog's SDK. Using the OpenTelemetry SDK keeps application code tied only to open standards, so the export route can change later. Using Datadog's SDK keeps Datadog-specific features available but reintroduces a vendor dependency in code. Confirm which features you need before choosing, because that choice decides how hard a later back-end move will be.

How Datadog-instrumented and OpenTelemetry services share one Collector during the move

The diagram starts with two groups of services still sending telemetry: Datadog-instrumented services, which send spans to the Collector's Datadog receiver, and OpenTelemetry-instrumented services, which send OTLP to the same Collector. The Collector then exports to whichever back end you have chosen, so the back-end decision stays separate from the library migration. Check that both paths reach the same back end, and that trace IDs from Datadog spans are reconstructed as expected before you switch services over one at a time.

Two instrumentation paths converge on one Collector before the back end.

How trace ID handling affects continuity during the switch

The main risk to trace continuity during a Datadog-to-OpenTelemetry move is how trace IDs survive the boundary between services that use different libraries. The Collector's Datadog receiver is alpha for traces, and by default it reconstructs full 128-bit trace IDs from spans sent by Datadog instrumentation. That default matters when a request starts in a service still using Datadog libraries and continues into a service already on the OpenTelemetry SDK. If the receiver rebuilds the full ID, the spans from both sides join into one trace. If the IDs are truncated or rebuilt differently, the request appears as two unrelated traces, and dashboards built on trace-level latency quietly show gaps.

Propagation headers decide what crosses each hop. Confirm which header formats each service sends and reads, including the Datadog headers used by the old libraries and the W3C Trace Context headers used by OpenTelemetry, and check whether any service sits in the middle and drops or rewrites them. Your gateways, message brokers and queue consumers often strip or copy headers in ways that are easy to miss. Set the propagator configuration explicitly on both sides rather than relying on defaults, so that a service changed in the middle of a rollout still accepts what its upstream callers send. Confirm the exact propagator settings with the Datadog and OpenTelemetry SDK documentation for each language you run.

Before cutover, run a pilot that follows a set of real request paths through both library types and check each trace for a single trace ID and a complete parent-child chain. Include at least one path that crosses a boundary where the caller and callee use different libraries, and one path through an asynchronous job. Record any trace that splits in two, then trace the split to the hop where the header was lost. Treat a failed check as a blocker for that service, not a dashboard issue to fix later. Keep the pilot running until the mixed-library paths pass consistently, because a split that appears only under load or on one routing path will not show up in a short test.

Sequence for inventory, pilot, parallel run, cutover and decommission

This sequence moves Datadog-instrumented services to OpenTelemetry one service at a time, with a pilot, a parallel run and a verified cutover before any Datadog SDK is removed. Each stage ends with a check that the telemetry the team relies on still arrives and is still correct.

  1. Inventory Datadog tracing libraries and custom spans

    The platform or observability team lists every service that loads a Datadog tracing library, the library and version it uses, and every custom span, tag, baggage item and sampling rule written against the Datadog API. Service owners confirm which dashboards, monitors and SLOs depend on each item. The step closes when the inventory maps each service to its library, its custom instrumentation and its downstream consumers, and owners have signed off on it.

  2. Choose the back end path before changing code

    The team decides whether Datadog stays the back end and, if so, which route carries OpenTelemetry data into it: the Datadog Agent with its DDOT Collector, a standard OpenTelemetry Collector exporting over OTLP, or direct OTLP ingestion. Datadog's documentation describes each option, and the team should confirm the current support status of each with Datadog before deciding. The step closes with a written decision record that names the route and the owner of the exporter configuration.

  3. Stand up the Collector and the staged receiver

    Platform engineers deploy the OpenTelemetry Collector in the agent or gateway pattern inside infrastructure the organization controls, then add the contrib Datadog receiver if old Datadog-instrumented services need to keep sending through the same path during the transition. The receiver is alpha for traces, metrics and logs, so the team checks the component README for its current stability before relying on it. The step closes when a test span from an existing Datadog-instrumented service appears in the chosen back end through the Collector.

  4. Pilot one low-risk service with trace ID checks

    One service with modest traffic and few downstream dependencies is moved from the Datadog tracing library to the OpenTelemetry SDK, with its custom spans recreated through the OpenTelemetry API. Engineers verify that trace IDs propagate across the boundary to neighboring services that still use Datadog, which depends on how the Datadog receiver reconstructs full 128-bit trace IDs by default. The step closes when traces for the pilot join correctly with upstream and downstream spans, and the service owner accepts the result.

  5. Run both paths in parallel and compare

    The pilot service emits telemetry through the old Datadog path and the new OpenTelemetry path at the same time, and the team compares span counts, error rates, latency percentiles, attribute names and sampling behavior between the two. Dashboards and monitors are rebuilt against the new attribute names, and differences are logged with a cause and an owner. The step closes when the team can explain every difference and the service owner confirms that alerts fire as expected on both paths.

  6. Cut over service by service

    Each remaining service is switched to OpenTelemetry in a planned order, with its Datadog library disabled only after its replacement has passed the comparison checks. Rollback steps for each service are written down and tested in a non-production environment before the switch. The step closes for each service when its telemetry is confirmed in the back end, its dashboards and monitors point to the new data, and the rollback path has been exercised.

  7. Decommission Datadog SDKs and staged receivers

    When every service has been cut over and the observation period set by the team has passed without open issues, engineers remove the Datadog tracing libraries from dependencies and build images, retire the staged Datadog receiver if it is no longer needed, and remove unused Agent configuration. Secrets and API keys for the old path are revoked. The step closes when a dependency scan shows no Datadog tracing library in any service, and the platform team records the final state in its inventory.

What drives the cost and duration of the migration

This table lists the factors that move the cost and schedule of a Datadog-to-OpenTelemetry move, who carries each cost, and whether it is one-time or recurring. Read it before asking for a quote, because each driver should appear as a line item or an assumption in the written scope. The main takeaway is that the back end decision and the number of Datadog-specific dashboards and monitors often matter as much as the instrumentation change itself.

DriverWhy it changes cost or effortOne-time or recurringWhat to ask for in a quote
Number of services and languagesEach service and language runtime needs its own SDK or agent change, test and rollout. Mixed stacks multiply the verification work.One-timeService inventory by language, with the planned order of rollout and the owner of each service
Custom spans and tagsManual spans built with Datadog's SDK must be mapped to OpenTelemetry APIs, and custom tags must be checked for naming differences.One-timeCount of custom spans and tags in code, and the mapping approach for each
Dashboards and monitors on Datadog-specific attribute namesQueries, alerts and SLOs that reference Datadog attribute names must be rewritten or re-verified against the new telemetry. This is often the largest rework item.One-time, with ongoing upkeep as new panels are addedInventory of dashboards, monitors and SLOs, and whether each will be rebuilt, mapped or retired
Trace context propagation across servicesServices on Datadog and OpenTelemetry must pass trace context correctly during the transition. Trace ID handling, including the Collector's Datadog receiver defaults, needs testing per service path.One-time during the staged movePropagation test plan covering every service-to-service call path, and the trace ID handling method chosen
Whether the back end changesKeeping Datadog as the back end is a smaller change than moving to a self-hosted or other back end, which also needs storage, query and retention work.One-time for the migration, recurring for the back end's running costWritten decision on the back end, and the cost model for the chosen back end that the migration scope does not include
Collector build and hostingDeciding between agent and gateway patterns, building a Collector distribution with only the needed components, and running it in your infrastructure adds setup and patching work.Setup is one-time, patching and upgrades recurDeployment pattern, build method, hosting location, and who patches and upgrades the Collector
Staged rollout and parallel runningRunning Datadog agents and OpenTelemetry pipelines side by side means duplicated telemetry, data comparison and a longer cutover period.One-time, with a temporary duplicate running costPlanned overlap period, comparison method, and the cutover criteria written in the scope
Security and access reviewCollector endpoints, credentials and sensitive attribute handling must be reviewed for each new pipeline, which adds effort for regulated environments.One-time, then periodic reviewScope of the review, the redaction rules to be applied, and the evidence delivered at the end

What usually goes wrong when Datadog tracing moves to OpenTelemetry

Most problems in a Datadog-to-OpenTelemetry move come from mixing old and new instrumentation, from data shapes that downstream dashboards and monitors depend on, and from running two pipelines at once. Each card names one failure point and the check that prevents it before cutover.

Broken trace continuity across mixed libraries

When some services still use Datadog tracing libraries and others use OpenTelemetry SDKs, a request can arrive at a service with propagation headers the receiving library does not read. The result is traces that split into fragments with missing parent-child links. Before cutover, test one request path that crosses both library types and confirm the spans join into a single trace in the back end you chose.

Datadog OpenTelemetry docs

Attribute names that break dashboards and monitors

Span and tag names set by Datadog libraries do not always match OpenTelemetry semantic conventions, so a query that worked yesterday can return empty after a switch. Alerts built on those fields fail silently. Inventory every dashboard, monitor and saved query that references span or tag names, then map each one to its OpenTelemetry equivalent and replay the alerts against the new data before retiring the old instrumentation.

Alpha receiver stability

The Collector's Datadog receiver is alpha for traces, metrics and logs, so its behavior can change between releases. Pin the Collector version in your deployment, read the component's README for the signals you use, and confirm the component is in your chosen distribution. Plan a rollback path that does not depend on the receiver for production traffic.

Receiver stability
Alpha
Datadog receiver README

Missing Datadog-only features

Some capabilities in Datadog libraries, agent behavior or product features may not have a direct OpenTelemetry equivalent, depending on the path you choose. Examples include product-specific tags, certain runtime metrics or profiling features. Ask the vendor and your own team to list the features your teams rely on today, then mark each as supported, replaced or dropped before the migration plan is approved.

Sensitive data in span attributes

Instrumentation that was reviewed under one library can start capturing new attributes once it is rewritten, including query text, headers or user identifiers. Those values may then reach a back end with broader access than the original setup. Review the attributes each service emits after the switch, and use the Collector's redaction processor to remove sensitive attributes before export, as OpenTelemetry's security guidance recommends.

Collector security best practices

Parallel runs that double telemetry cost

Running Datadog libraries and OpenTelemetry instrumentation side by side, or sending the same spans to two back ends, can roughly double ingestion for the overlap period. Teams often leave the parallel run open longer than planned. Set a fixed end date for the parallel run in the written plan, and ask your back-end provider how ingestion is billed during that window so the cost is known before it starts.

Questions buyers ask before moving Datadog tracing to OpenTelemetry

What drives the cost of moving Datadog tracing to OpenTelemetry?

The cost depends mainly on how many services use Datadog tracing libraries, which languages and frameworks they run, and how much custom instrumentation sits on top of the automatic kind. Each service needs its SDK or agent configuration changed, its spans checked, and its deployment rolled out, so the count of services and the diversity of runtimes usually matter more than any single change. Other cost drivers include the number of environments, the need to run old and new instrumentation side by side, and how much dashboard and alert rework follows. Ask any partner to quote per service group, with the languages, the Collector deployment pattern and the verification steps listed separately. No price figure is given here because none has been researched for this topic.

How long does a Datadog to OpenTelemetry tracing migration take?

Duration depends on the same inputs as cost: service count, languages, the number of Collector pipelines needed and how much verification each service requires. A staged move, where Datadog-instrumented services keep sending to their current path while new services adopt OpenTelemetry, takes longer overall but reduces the risk of a single cutover. Ask for a timeline tied to a written scope, with milestones for pilot services, production rollout and retirement of Datadog libraries. Do not accept a duration that is not based on a list of services.

What does the client's team need to provide for the engagement?

The client's team usually provides an inventory of services and the Datadog libraries and versions each one uses, access to the environments where the code deploys, and a named owner for production changes. Engineers who know the service behavior must review trace output, because a span that looks correct to a tracing tool can still be wrong for a business flow. Security and platform teams must approve where the Collector runs, how credentials are stored and which network paths are open. Confirm these responsibilities in writing before work starts so that delays are not charged as surprises.

Can our own engineers do this migration without a partner?

Yes, a capable platform team can do this work in house, particularly when the service count is small and the languages are already familiar. The usual gap is not the code change itself but the verification: confirming that spans, service names and resource attributes still line up with existing dashboards, and that the Collector handles load and secrets safely. Teams that do it themselves should plan time for a pilot, keep a rollback path and document each service's configuration. A partner is most useful when the inventory is large, several back ends are involved or the team lacks time to validate each service.

Do we have to change our observability back end to move to OpenTelemetry?

No. OpenTelemetry is not an observability back end, so it does not require a change of storage or visualization tools. Datadog documents several ways to send OpenTelemetry data to Datadog, including the Datadog Agent with its DDOT Collector, a standard OpenTelemetry Collector exporting over OTLP, and direct OTLP ingestion. Those options let you keep Datadog for now while you replace instrumentation, and they also leave room to move to another back end later. Decide the back end as a separate question, and confirm with Datadog which of its documented paths fits your contract and data residency rules.

How does the Collector's Datadog receiver help a staged move?

The Datadog receiver in the OpenTelemetry Collector contrib distribution accepts spans sent by Datadog instrumentation, so services that have not yet changed can keep their existing senders while the pipeline is rebuilt. It is alpha for traces, metrics and logs, so confirm its current stability in the receiver README before depending on it in production. Teams use it to test processing rules, route data and compare output before switching instrumentation. Plan for a rollback path and do not treat the receiver as a permanent destination without reviewing its maturity.

How are trace IDs handled when services are only partly migrated?

The Datadog receiver reconstructs full 128-bit trace IDs from spans sent by Datadog instrumentation by default, which matters because Datadog's older libraries can send 64-bit IDs. If a trace crosses a service still on Datadog libraries and a service on OpenTelemetry SDKs, the IDs must match or the trace breaks into fragments. Engineers should check trace continuity across a mixed path, confirm propagation headers on each hop and test with a request that crosses both sides. Any broken traces found during a pilot should be fixed before the next group of services moves.

Securing the Collector while telemetry moves

Once Datadog-instrumented services send spans through a Collector, the Collector becomes a new entry point and a new place where credentials and sensitive data sit. Treat its configuration as a secret in its own right. OpenTelemetry's Collector configuration best practices recommend storing the configuration securely, using encryption and authentication, and building only the components you need with the Collector Builder. For a staged move, that means the Datadog receiver, the exporter that targets your chosen back end, and any API keys referenced in exporter settings should be reviewed together, not as separate files. Confirm where your configuration and secrets live today and who can read them.

Authentication has to be set on both sides of the Collector. Authenticator extensions can check incoming connections on receivers, for example with OIDC, and can add credentials to outgoing exporter requests, for example with the oauth2client extension. Decide which senders must authenticate before you point Datadog-instrumented services at the Collector, and confirm with your platform team whether your sending path can carry the credentials the receiver expects. The Datadog receiver accepts Datadog-format spans, so an open receiver is not a harmless default during a migration, even if it is temporary.

The redaction processor removes sensitive attributes before data leaves the Collector. Tracing libraries often capture URLs, query strings, headers and database statements that carry tokens or personal data, and those attributes can survive a move from one back end to another unchanged. Build a list of attributes your Datadog instrumentation currently records, mark the ones that must not be exported, and test the redaction rules against sample spans. Server components also bind to localhost by default since Collector v0.110.0, rather than 0.0.0.0. Check any change you make to bind addresses, because widening them exposes the receiver to your network.

How DeployOpen scopes and delivers this migration

DeployOpen approaches a Datadog-to-OpenTelemetry move as a written, fixed-scope engagement: first an inventory of Datadog tracing libraries and agents, then staged replacement of instrumentation, with the back end decision kept separate. Each stage ends with tested traces, documented configuration and a handover to your team.

How we scope

  • Inventory every service using Datadog tracing libraries, the Datadog Agent and any Datadog-specific tags or APM settings.
  • Record which Datadog option each service will use, such as the DDOT Collector, a standard Collector or direct OTLP ingestion.
  • Agree in writing whether the Collector Datadog receiver is part of a staged move, and for how long it will run.

How we build

  • Replace tracing libraries service by service, starting with a pilot that proves trace ID handling end to end.
  • Configure Collector pipelines with authentication, the redaction processor for sensitive span attributes and only the components the build needs.
  • Test span propagation across services and confirm that 128-bit trace IDs stay intact through every hop.

How we hand over

  • Deliver configuration files, deployment manifests and a service-by-service migration record stored in your repositories.
  • Document the decisions taken on the back end, trace ID behavior and any Datadog receiver settings still in use.
  • Run a walkthrough with your engineers so they can add a new service to the pipeline without outside help.

How we support

  • Offer ongoing support, Collector upgrades and continuous testing as a retainer after the handover.
  • Plan Collector version updates against the published release cadence, with a test run before each change.
  • Retire the Datadog receiver and Datadog-specific libraries on a dated plan agreed with your team.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.