Migrate from OpenTracing to OpenTelemetry without breaking traces in production
If your services are instrumented with OpenTracing APIs and your dashboards and alerts read the span data that instrumentation produces, the move to OpenTelemetry is a staged change, not a single library swap. OpenTelemetry was formed by merging OpenTracing and OpenCensus, so it is the project that OpenTracing users are expected to land on, but the trace data your services emit will change in ways your existing queries may not expect. The effort depends on four things you can count before you start: how many services use OpenTracing, which languages they run, how heavily they use baggage, and how tightly your dashboards and alert rules are coupled to specific span names, attributes and tags. Each of these pushes the timeline in a different direction, so treat any single estimate with caution until you have inventoried all four.
Start by building that inventory per service: the tracer and its version, the language runtime, every custom span name and tag, every use of baggage, and every dashboard panel or alert rule that filters on span data. Confirm with each service owner which OpenTracing bridge or shim they plan to use, because the compatibility path differs by language and the supported options are documented by each SDK project. Then confirm the current state of the OpenTelemetry SDK you intend to adopt in each language using the OpenTelemetry status page, since trace support is stable in most languages but log support varies. Plan to keep both instrumentations running side by side in a test environment first, and make the sequence explicit: export through the Collector, compare span output from old and new paths, then cut over one service at a time.
Do not treat the cutover as finished until your dashboards and alerts are verified against new span data. Semantic convention changes can rename attributes that your queries depend on, so a service can look healthy in its own logs while a Grafana panel or alert quietly shows no data. Ask your team to list each dashboard and alert that uses trace fields, then check them against the output of the new pipeline before retiring the old instrumentation. Record the decision on when each OpenTracing path is removed, who owns that decision, and what evidence is required. Pair this with the Collector configuration in the Collector configuration docs so that routing and processing changes are reviewed and versioned like any other production change.
What maps from OpenTracing to OpenTelemetry and what needs rework
This table pairs each OpenTracing concept with its OpenTelemetry counterpart and marks whether the move is direct, needs a shim, or requires renaming and convention changes. Read the third column as the work list for your code and dashboards. Shim coverage differs by language and SDK version, so confirm each row against the release you run before planning.
| OpenTracing concept | OpenTelemetry equivalent | Migration effort |
|---|---|---|
| Tracer | TracerProvider and Tracer from the OpenTelemetry API, usually obtained through the SDK setup code | Needs shim or rewrite: the OpenTracing tracer is replaced by provider setup, so startup code changes even when call sites are shimmed |
| Span | Span in the OpenTelemetry API with start, end, status and events | Mostly direct: names and lifecycle calls map closely, but confirm each language's shim for operation names and finish semantics |
| Span context | SpanContext holding trace ID, span ID and trace flags | Direct at the data level: trace IDs carry over, but confirm how your shim exposes the context object to existing code |
| Tags | Span attributes, set with keys that follow semantic conventions | Needs rework: tag keys such as http.method were renamed in later conventions, so dashboards and alerts keyed on old names break |
| Logs on spans | Span events, with attributes and timestamps | Needs rework: OpenTracing log fields are not automatically mapped to event names and attributes, so review each call site |
| Baggage | Baggage API, kept separate from span attributes and propagated by the baggage propagator | Needs rework: baggage is not copied into span attributes automatically, and values travel in headers to every downstream service |
| Propagation formats | W3C Trace Context and W3C Baggage propagators, configurable alongside B3 or Jaeger formats | Needs configuration: services in the same call path must agree on formats during the transition, so confirm which formats each service sends |
| Reporters and senders | Span processors and exporters, with OTLP as the preferred export protocol | Needs rework: reporters are replaced by exporters and processors in the SDK, and the Collector can take over export |
| Global tracer registration | Global TracerProvider set once at startup through the API | Needs rework: registration order matters, so set the provider before any instrumented code creates spans |
Which documented bridges and export paths exist for the move
Migrating from OpenTracing rarely means one switch. Teams usually combine an SDK-level shim, OTLP export and a Collector that accepts both old and new traffic while services move over. Each option below answers a different part of the coexistence question.
OpenTracing shim in your SDK
Each language SDK may ship a shim that exposes the OpenTracing API and routes calls into OpenTelemetry. This lets existing Tracer calls keep working while code moves to the OpenTelemetry API. Before you rely on it, confirm for each language your teams use whether a shim exists, which OpenTracing API version it covers, and whether it is marked deprecated. Those details live in each SDK's own documentation, not in this summary.
OTLP export from OpenTelemetry SDKs
Once spans come from OpenTelemetry instrumentation, the SDK exporter sends them over OTLP. Switching the exporter first lets you change the sending side without touching every call site. Check which signals your language SDK exports as stable, since trace SDKs are generally further along than log SDKs. Confirm the exporter settings, protocol options and retry behavior for your SDK version.
SDK status pageCollector as the receiving point
During coexistence, an OpenTelemetry Collector can receive OTLP from migrated services and the traffic from services still on OpenTracing, then process and export everything to one back end. Running it as an agent beside services or as a gateway for many sources are both documented patterns. Decide which pattern fits your network and where batching and redaction happen before you start moving services.
Collector docsComponent stability in the Collector
Collector components carry mixed stability levels, and each component's README states its status for traces, metrics and logs. A receiver or processor used in the bridge path must be stable enough for production in your setup. Record the status of every component in the pipeline, and pin the Collector release you test against, since the distribution you deploy determines which components are present.
- Latest Collector release
- v0.163.0
Deprecation notes and sunset dates
Shims and bridge components can be deprecated or removed in later releases, which can strand a coexistence period that was planned to be short. Check each SDK's deprecation notes and the Collector release notes before you set a retirement date for OpenTracing code. Treat any sunset date you find as something to confirm with the maintainers, and keep a written record of the version you validated.
How OpenTracing calls and OpenTelemetry spans share one pipeline during the transition
The diagram starts with two groups of services. Legacy services keep calling the OpenTracing API, which the compatibility shim routes into the OpenTelemetry SDK, while newer services call the OpenTelemetry API directly. Both groups export OTLP to a Collector agent, which forwards to a gateway inside the trust boundary at the Collector endpoints. The gateway then fans out to the existing tracing back end. Check that baggage set by a legacy caller still reaches downstream services, since baggage travels in request headers across each service boundary and every hop that reads it sees its contents.
Legacy and newer services share one OTLP path to the existing back end.
The step-by-step order for moving services without losing traces
This sequence moves tracing one piece at a time: inventory first, then a Collector, a pilot, a parallel comparison, service-by-service cutover and finally removal of the shim and old reporter. Each gate produces evidence that traces, dashboards and alerts still work before the next change begins.
Inventory OpenTracing call sites and propagation
Service owners list every place their code creates spans, sets tags and logs, reads or writes baggage, and calls inject or extract. Record each service's tracer initialization, sampler settings and the propagation formats used between services, including any baggage keys that other teams read. Note the reporter and endpoint each service uses today. The step is done when every service has an inventory entry signed off by its owner and the platform team holds a single list of baggage keys in use.
Confirm shim support for each language
Check which language SDKs your services use, then confirm with the OpenTelemetry project that a compatibility shim exists and is maintained for each language at the versions you run. The OpenTelemetry status page shows trace API and SDK stability by language, which helps you judge readiness, but it does not confirm shim support on its own. Flag any service that cannot use a shim and will need direct instrumentation work. The step closes with a per-language matrix of shim version, SDK version and owner.
Stand up the Collector on a current release
The platform team deploys the OpenTelemetry Collector as an agent beside services or as a gateway, depending on the network path the pilot will use. Use the latest tagged release, confirmed on the OpenTelemetry Collector releases page. At the time of writing, the most recent release was v0.163.0, released October 16, 2026, so confirm whether a newer one has shipped. Build only the components you need with the Collector Builder, enable authentication on receivers, and verify the release checksum. The step is done when the Collector accepts test OTLP data and exports it to your back end.
Pilot one non-critical service
Pick a service with low business impact and a clear set of downstream callers. Replace the OpenTracing tracer with the shim backed by the OpenTelemetry SDK, point OTLP export at the Collector, and keep the old reporter running so both paths can be compared. Confirm that service names, span names and resource attributes appear in the back end as expected. The pilot is done when spans from the service arrive through the Collector and a caller in another service links to them in the same trace.
Run a parallel period and compare output
Run both reporters side by side for the pilot and the next services in line, long enough to cover normal and peak traffic. Agree the length of the period up front, since it depends on your own traffic patterns. Compare span counts per operation, trace completeness (whether parent and child spans link across service boundaries) and what each dashboard and alert shows. Changed semantic conventions can rename attributes and break queries, so record every query and alert rule that needs editing. The gate is a written comparison signed off by the owners of the affected dashboards and alerts.
Cut over service by service
Move services one at a time, starting with the least critical and finishing with the most central. For each service, replace OpenTracing calls with the OpenTelemetry API and SDK, disable the old reporter, and keep a tested rollback to the previous build. Check trace continuity at every boundary where a migrated service calls an unmigrated one, because propagation formats must agree on both sides. Mark a service complete only after its traces, dashboards and alerts match the agreed comparison.
Remove the shim and decommission the old reporter
When no service still calls OpenTracing, remove the OpenTracing and shim dependencies from build files, delete configuration for the old reporter or agent, and close its network endpoints. Re-run the inventory from the first step to confirm no OpenTracing call sites or baggage handling remain under the old keys. Keep the old reporter's configuration in version control so it can be recovered, and confirm retention rules with your own change process. The step is done when a dependency scan finds no OpenTracing packages and the old endpoints receive no traffic.
Why baggage and context propagation need their own plan
Trace context and baggage cross service boundaries in headers, so a service moved to OpenTelemetry can break traces it has never touched. During coexistence, every service in a request path must agree with its neighbors on which propagation formats it sends and reads. An OpenTracing service still injecting one header format and an OpenTelemetry service expecting another will start new traces at the boundary, which shows up as orphaned spans and parent-child links that stop at the edge of the migrated service. Before you change any code, list every hop in your critical request paths, record the propagator each service uses today, and decide the target propagator set for the coexistence period. Keep that list with the migration plan, because it is the reference you will check against when a trace looks wrong.
Baggage needs more care than span context because it is application data, not telemetry metadata. Three pitfalls recur. Baggage is often set in one service and never read anywhere, so it inflates every request without adding value. Baggage values grow as teams add keys, and the combined header can exceed the header size limits of load balancers, API gateways and service meshes, which then reject or truncate requests in ways that look like application faults. Baggage also travels to third-party services and across trust boundaries unless you filter it, so identifiers, tokens or personal data placed there can leave your environment. In a test environment, confirm the size of the propagated headers under realistic load, check each baggage key has a named reader, and verify that your gateways and external egress points strip or allow only the keys you have approved.
Run these checks before any production cutover, using a staging path that mirrors the real hop order. Confirm that a request crossing a migrated service produces a single trace with correct parent IDs, and that a request crossing a service still on OpenTracing does the same. Check the header names and formats on the wire at each hop, not only in configuration, because a proxy can rewrite them. Test a request near the header size limit of your slowest proxy. Verify that sensitive keys are dropped before any boundary you do not control. Confirm the exact propagator settings each SDK and the Collector use, and record the expected behavior in writing, so that a rollback has a known-good state to return to. Your security and platform owners should sign off on the baggage keys in scope before the first service is switched.
What drives migration cost and duration
This table lists the cost components of an OpenTracing to OpenTelemetry move and the factors that raise or lower effort for each. Read it as a checklist for a written scope: every driver changes the size of the work, and only a scope based on your own inventory can turn them into a quote or schedule.
| Driver or cost component | How it changes effort or cost | What to confirm or ask for in a quote |
|---|---|---|
| Number of services | Each instrumented service needs its own code change, test and parallel-run check, so effort grows with service count even when the change per service is small. | A service-by-service inventory listing owners, languages and deployment units. |
| Number of languages and runtimes | Each language has its own OpenTracing-to-OpenTelemetry bridge or SDK path, so mixed estates need separate skills, test harnesses and rollout steps. | Which languages are in scope and which have an OpenTelemetry bridge or SDK path you have verified. |
| Custom OpenTracing code | Hand-written tracer wrappers, custom span propagators and bespoke carriers take longer to replace than standard instrumentation calls. | A count of custom tracer, span and propagation code, with owners for each module. |
| Baggage use | Baggage carried across services must be reviewed for meaning, size and sensitivity, and its propagation behavior must be tested end to end. | A list of baggage keys, where they are set and read, and whether any carry sensitive values. |
| Dashboard and alert coupling | Dashboards, alerts and queries that depend on old span names, tags or metric names need rewrites and sign-off, often the largest hidden share of effort. | An inventory of dashboards and alert rules that reference tracing data, with their owners. |
| Proxy and mesh headers | Gateways, service meshes and proxies that inject or read trace headers must agree on formats, so each hop adds configuration and test work. | A map of proxies and meshes in the request path and the header formats each one emits and reads. |
| Collector build and deployment | A Collector distribution must be chosen, built with only the components you need, secured and deployed as agents or gateways, which adds platform work before any service changes. | Whether the build is produced in-house or by the partner, and who owns upgrades to the Collector. |
| Parallel-run verification | Old and new telemetry must be compared for a period, so verification time depends on traffic volume, the number of signals compared and the reconciliation method. | The comparison method, the period it runs, and the criteria for switching traffic over. |
| Change freeze windows | Freeze periods push rollouts into narrower windows, which can extend the calendar schedule even when the engineering effort is unchanged. | Freeze calendars for the target environments and the number of release windows assumed. |
| Team skills and training | Teams new to OpenTelemetry SDKs, semantic conventions and Collector configuration need onboarding, which lengthens the work and can shift it to vendors. | Skills assessment of the internal team and whether training is part of the scope. |
| Decommissioning | Removing OpenTracing libraries, old agents and retired pipelines is a separate step with its own checks, and it is often skipped in estimates. | Decommissioning steps, owners and the date each legacy component is removed. |
Where dashboards and alerts break after the switch
Moving from OpenTracing to OpenTelemetry changes the names, sampling and propagation that your dashboards and alerts depend on. The risks below share one root cause: the telemetry looks healthy while the queries, thresholds and trace stitching built on the old shape quietly stop matching it.
Renamed attributes break queries
Semantic conventions define the attribute names that OpenTelemetry SDKs and instrumentation libraries emit, and many of them differ from the tags your OpenTracing code set by hand. Dashboards filtering on old keys will show empty panels rather than errors. Build an attribute mapping table that lists each old tag, its new attribute name and the services that emit it, then review it against the semantic conventions for each language you run before cutting over.
OpenTelemetry overviewAlerts keyed to old names go silent
An alert on a span name or tag that no longer arrives does not fire, so it looks like a quiet system. This is the most dangerous failure in the switch because nothing in the pipeline reports it. Before retiring an OpenTracing service, replay recent incidents or synthetic error traffic through both paths and confirm every alert rule still triggers on the new data. Record which rule was tested and the date, so the evidence survives team changes.
Sampling shifts error and latency percentiles
If the old and new paths sample differently, p95 and p99 latency and error rates will move even when the service has not changed. Head sampling decisions made in an OpenTracing tracer and in the OpenTelemetry SDK may not match, and tail sampling in the Collector changes which slow or failed traces survive. Run paired dashboards for the same services during the parallel run and state the sampling rate on each panel, so a shift is read as a sampling effect rather than a regression.
Baggage and propagation split traces
Mixed services may send trace context in different formats, so a request that crosses an OpenTracing service and an OpenTelemetry service can start a new trace instead of continuing the old one. Baggage added through one API may also be absent or renamed on the other side. Confirm the propagators configured on every service, decide which header format is authoritative during coexistence, and check a sample of cross-service requests end to end before retiring the shim on any path.
Shim coverage gaps in your stack
The compatibility shims cover only the languages, frameworks and client libraries the project supports, so a framework your team uses may have no bridge, or a bridge that lags the current release. Inventory every language and framework that carries OpenTracing calls, mark which ones have a documented shim and which need manual instrumentation, and test those gaps in staging. Ask the vendor or maintainer of each framework to confirm the coverage before you commit a migration date.
OpenTelemetry statusHow long can OpenTracing and OpenTelemetry coexist and what does the work cost
How long can OpenTracing and OpenTelemetry run side by side?
There is no fixed date that the industry has published for how long the two can coexist, so plan the period around three limits: how far the compatibility shim is supported in each language you run, whether your tracing back end handles mixed attribute names, and how much change your team can absorb at once. Confirm the shim status for every language and framework in your inventory with the relevant OpenTelemetry language documentation before you set a target. Most teams keep both in place only long enough to move each service, then remove the OpenTracing code so that new work does not extend the overlap.
What makes the coexistence period longer or shorter?
The biggest factor is how many services share a trace with services that have not yet moved. If a request crosses both old and new code, the context propagation format, span names and attributes must line up, or traces break. Other factors are the number of languages (each shim has its own maturity), how many dashboards and alerts reference OpenTracing-era names, and whether the platform team can run the Collector in the middle. A small estate with one language and a single back end can finish in a short window, while a polyglot estate with many owners usually needs a staged plan with a clear end date.
What does the migration work cost, and what drives the price?
Cost depends on the work scope rather than on a list rate, and DeployOpen does not publish prices. The main components are discovery (inventory of services, libraries and dashboards), code changes per service and language, Collector pipeline design and deployment, validation of traces and alerts, and handover. Cost rises with the number of services, the number of languages, custom instrumentation that has no direct equivalent, and the number of dashboards and alerts that need rework. Ask any provider for a quote that lists these components separately, with the assumptions behind each one.
Which costs are one-time and which recur after the migration?
One-time costs include the inventory, code and configuration changes, pipeline build, test environment setup and the rework of dashboards and alerts. Recurring costs are the ones that stay after the project ends: operating the Collector, applying Collector releases and component updates, monitoring the pipeline itself, and keeping retained dashboards aligned with the attribute names your back end stores. Ask the quote to separate these two groups, and to say whether ongoing support is a retainer or an as-needed arrangement.
What do we need to provide before the work starts?
Plan to supply five things: a service inventory listing each service, its language, framework and OpenTracing library version; read access to source repositories and build pipelines; access to existing dashboards, alert rules and the trace back end; a test environment that resembles production traffic; and named owners for each service and for the back end. Owners decide attribute and naming changes, approve cutovers and sign off on rollback steps. Without named owners, the coexistence period tends to grow because decisions wait on people who were not assigned.
Can our own team do this migration without a partner?
Often yes, if the team already runs production services in the affected languages, has someone who has operated a Collector, and can allocate time for testing across owners. The work is not difficult in isolation, but it is spread across many repositories and dashboards, and the errors appear as gaps in traces rather than as clear failures. Teams that lack Collector operating experience, or that have many services owned by different groups, often bring in outside help for the design and cutover while keeping the code changes in-house. Compare the internal time estimate against the scope list above before deciding.
What does a fixed-scope engagement cover for this migration?
DeployOpen usually works from a written scope that names the services, languages, Collector pipelines, dashboards and alerts in the migration, along with deliverables and timelines agreed before work starts. Typical deliverables include the inventory, a staged cutover plan, instrumentation changes for the agreed services, Collector configuration with security settings reviewed against the OpenTelemetry Collector security guidance, validation evidence and a handover. Ongoing support and upgrades can be added as a retainer. Anything outside the written scope, such as back-end replacement, is quoted separately.
How DeployOpen scopes, delivers and supports the migration
DeployOpen approaches the move from OpenTracing to OpenTelemetry as a scoped engagement: we inventory the existing instrumentation, agree the migration order in writing, then build and verify each step in your own infrastructure. Engagements are fixed-scope, so the deliverables and boundaries are settled before work starts.
How we scope
- We inventory OpenTracing tracers, spans, propagators and exporters across services before agreeing any order of work.
- The written scope lists which services, languages and back ends move, and which stay on OpenTracing for now.
- We identify dashboards and alerts that depend on span names, attributes and metric names so their changes are planned.
How we build
- We follow the documented shim order, starting with the Collector and exporters before changing application code.
- Baggage and context propagation are tested end to end, since OpenTracing and OpenTelemetry handle them differently.
- Collector pipelines are built with only the components needed, using the Collector Builder where a custom distribution is required.
How we hand over
- You receive a migration record showing each service, the instrumentation state, and the verified trace paths.
- Dashboard and alert changes are documented with old and new names, so your team can review them against its own rules.
- Runbooks cover Collector configuration, secrets handling, and the coexistence period while both APIs run in parallel.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the migration closes.
- Retainer scope, such as Collector version updates and config reviews, is agreed in writing before it starts.
- Retesting after Collector upgrades or instrumentation changes can be added to the retainer to confirm trace continuity.

