Migrating from Application Insights SDKs to OpenTelemetry: what the move involves
If your .NET, Node.js, Python or Java services still send telemetry through Application Insights classic SDKs, the move to OpenTelemetry is a re-instrumentation plus a back-end decision. The effort depends on the language, the SDK version each service runs and how many services need to change. OpenTelemetry is a framework for generating, collecting and exporting traces, metrics and logs. It does not store or visualize anything, so you still need a back end. That back end can be Azure Monitor or a self-hosted store, and the OpenTelemetry Collector can sit between your services and either one.
Start by inventorying each service with its language, runtime, Application Insights SDK package and version, and the signals it emits today (requests, dependencies, exceptions, custom events, metrics). Then note which of your dashboards, alerts and workbooks depend on those specific telemetry types and fields, because those are what the migration can break. Microsoft's guidance points new .NET, Node.js and Python adopters to the Microsoft OpenTelemetry Distro, points Application Insights .NET SDK 2.x users to either an upgrade to 3.x or a fresh start with the distro, and points Java applications to the Azure Monitor OpenTelemetry Distro. Confirm the current distro for each language against the Microsoft Learn migration guide before you plan the order of work.
The back-end decision controls the rest of the design. If you keep Azure Monitor, the Collector contrib Azure Monitor exporter is still beta for traces, metrics and logs, and it is configured with an Application Insights connection string, so confirm its status in the exporter README for your signals. If you move to a self-hosted store, the Collector becomes the exporter boundary and the services only speak OpenTelemetry. Decide this per signal and per environment before you change code, since dual-running both paths is often needed during cutover.
Which Application Insights capabilities map to OpenTelemetry and which do not
This table pairs each classic Application Insights SDK capability with its OpenTelemetry equivalent, the Microsoft distro that carries it, or the Collector setting that replaces it. Read the middle column first, then check the last column against Microsoft's current guidance, because support differs between SDK 3.x, the distros and the Collector exporter.
| Capability | OpenTelemetry equivalent | What to confirm before cutover |
|---|---|---|
| Request and dependency tracking | Instrumentation libraries in the OpenTelemetry SDK or the distro's automatic instrumentation for supported frameworks | Confirm which frameworks and client libraries your services use are covered by the distro for your language |
| Custom events and custom metrics | Span events and OpenTelemetry metrics API instruments, or logs emitted through the logs API | Confirm how each custom event type maps to a signal, since dashboards and queries may rely on the old table names |
| Telemetry initializers | Span processors, resource detectors or Collector processors such as attributes or transform | Confirm which initializer logic can move to a processor and which must be rewritten in application code |
| Sampling | Head sampling in the SDK or tail sampling in the Collector | Confirm the sampling mode the distro supports and how it affects request and dependency counts in Azure Monitor |
| Cloud role name and role instance | Resource attributes such as service.name and service.instance.id | Confirm the attribute names Azure Monitor uses to populate the cloud role field after migration |
| Live metrics | No direct OpenTelemetry equivalent is confirmed in the supplied sources | Confirm with Microsoft whether Live Metrics is available with the distro you choose and in your Azure Monitor configuration |
| Connection string and ingestion | Application Insights connection string set for the distro or the Collector Azure Monitor exporter, which is beta for traces, metrics and logs | Confirm the exporter stability level in the component README before using it in production, and check current Microsoft guidance |
| Java agents and SDK | Azure Monitor OpenTelemetry Distro for Java, not the Microsoft distros for .NET, Node.js and Python | Confirm the Java distro and its supported features with Microsoft Learn, since the Java path differs from the other languages |
| SDK 3.x for .NET | Upgrade path from Application Insights .NET SDK 2.x to 3.x, or a fresh start with the Microsoft OpenTelemetry Distro | Confirm which features exist in 3.x but not in the distro, and whether your team will move to the distro later |
Choosing between an SDK 3.x upgrade and a fresh start with the distro
Microsoft's migration guidance says Application Insights .NET SDK 2.x users can upgrade to 3.x. This path fits a service that already sends telemetry through the classic SDK and needs to keep that telemetry flowing while the instrumentation moves closer to OpenTelemetry. The upgrade is a code and package change in the application, so the work sits with the team that owns the service.
- Starting point: a production or staging service on the 2.x SDK with a working Application Insights resource.
- What the path keeps: the existing Application Insights destination, so the team can compare new telemetry with the baseline it already monitors. Confirm the exact list of carried-over behavior in the Microsoft Learn migration guide.
- What changes: the package and API surface move to 3.x, so custom telemetry initializers, processors and manual tracking calls need review.
- What to test first: operation names, dependency calls and custom properties in a non-production environment, compared against the 2.x output for the same requests.
- Where the path stops: it is an SDK upgrade. Teams that want OpenTelemetry-native instrumentation across other services should confirm whether 3.x meets that need.
Before scheduling the upgrade, check the guide's breaking changes against every custom telemetry hook in the codebase.
Microsoft's guidance says new .NET adopters should use the Microsoft OpenTelemetry Distro. The same guidance says Application Insights .NET SDK 2.x users can also start fresh with the distro instead of upgrading to 3.x. A fresh start suits teams that want to rebuild instrumentation on one OpenTelemetry-based setup, or that have custom telemetry code they would rather rewrite than port.
- Who this fits: new services, or existing services where the team plans to replace the instrumentation rather than maintain it through a version step.
- What the path keeps: the Application Insights destination remains the target, but configuration does not move automatically. Plan to re-create sampling, role names, custom properties and connection settings by hand.
- What changes: the instrumentation model, the packages and the configuration surface all change at once, so every telemetry assumption in the code needs a fresh check.
- What to test first: whether requests, dependencies, exceptions and custom events appear in the Azure Monitor resource with the expected names, and whether sampling behaves as intended.
- What to record: a baseline of current 2.x dashboards, alerts and queries so the team can confirm that each one still returns results after cutover.
If the team cannot describe its current telemetry in writing, complete that inventory before choosing a fresh start.
Microsoft's guidance says new Node.js and Python adopters should use the Microsoft OpenTelemetry Distro for their Application Insights telemetry. For services in these languages, the decision is mostly about whether the team is adopting for the first time or moving from an existing Application Insights SDK setup, and the guide should be read for each case before the plan is written. This tab covers the adoption path the guidance names directly.
- Who this fits: new Node.js or Python services that need Application Insights as the destination.
- What the path keeps: the Azure Monitor destination and the option to send data through a connection string, which should be confirmed for each runtime in the guide.
- What changes: the instrumentation is built on the distro and OpenTelemetry packages, so framework coverage and span naming should be checked against what the old setup produced.
- What to test first: startup and shutdown behavior, including whether pending telemetry flushes when a process exits, and whether HTTP, database and messaging calls appear as expected.
- Runtime support: confirm the supported Node.js and Python versions in the guide before building images, since runtime support determines what the team can deploy.
Before cutover, run old and new instrumentation side by side in a test environment and compare the telemetry produced for the same test traffic.
Microsoft's guidance says Java applications should use the Azure Monitor OpenTelemetry Distro. Java is the one language in this topic where the guidance points to a single named distro for all Application Insights users, so the decision is less about choosing between upgrade and fresh start and more about planning the move onto that distro. Teams should read the Java section of the guide before changing build files or container images.
- Who this fits: Java services that send telemetry to Application Insights and need to move to OpenTelemetry-based instrumentation.
- What the path keeps: the Azure Monitor destination and the configuration model used by the distro. Confirm which settings from the existing setup map directly and which need new names.
- What changes: the agent or library wiring, the dependency versions and the configuration source. Container images and deployment manifests usually change with them.
- What to test first: custom spans, log correlation and dependency tracking for the frameworks the service uses, plus behavior under the service's normal load.
- Runtime support: confirm the supported Java versions and application servers in the guide before standardizing the build.
After the change, compare the first full day of telemetry from the new build against the previous build before retiring the old agent or library.
Sending data to Azure Monitor or a self-hosted back end
The first decision is where the data goes after the SDK is replaced. You can keep Azure Monitor as the back end, or send OTLP to a Collector that forwards to a back end you run. For the Azure Monitor path, the Collector contrib Azure Monitor exporter is the relevant component, and it is configured with an Application Insights connection string. Its README lists the exporter as beta for traces, metrics and logs, so confirm the maturity of each signal you depend on before you cut over, and test alert rules and dashboards against the new data. Check the current exporter status in the Azure Monitor exporter README and in the Microsoft guidance for your language, since Microsoft's own distros may be the better fit for application-side export.
Keeping Azure Monitor avoids running a Collector tier and keeps existing workbooks and retention settings in place. The trade-off is that your application telemetry path is tied to one vendor's exporter and its maturity per signal. Routing OTLP through a self-hosted Collector to another back end gives you one pipeline for traces, metrics and logs, the option to send the same data to more than one destination, and a place to redact fields before they leave your network. The cost is that your team operates the Collector, its scaling, upgrades and monitoring, and that dashboards and alerts must be rebuilt for the new back end. A common staged approach is to point the SDKs at a Collector first, keep the Azure Monitor exporter in that Collector, and move the back end later. This is an illustrative sequence, not a required one.
The OpenTelemetry Collector repository is licensed under Apache-2.0, so you can run it inside your own environment without a license fee for the core project. It can run as an agent next to each service or as a gateway that receives data from many sources, and the choice affects failure domains and where credentials sit. Before you commit, ask your Azure and platform teams to confirm which Collector distribution includes the exporters you need, and who signs off on the connection string handling and the network path to each back end.
How telemetry flows from services to Azure Monitor or a self-hosted back end
The flow starts in .NET, Node.js, Python and Java services instrumented with OpenTelemetry, which export telemetry either directly or to a Collector inside the application network. The optional Collector can run as an agent beside services or as a gateway, applying processors before data leaves. The two exit paths are the Azure Monitor exporter, configured with an Application Insights connection string, and OTLP to a self-hosted back end. Check where the trust boundary sits, since data crossing it should be encrypted and authenticated.
Services send telemetry through an optional Collector to Azure Monitor or a self-hosted back end.
The migration sequence from inventory to decommissioning Application Insights SDKs
The sequence turns an unplanned SDK swap into a controlled move, where each service is inventoried, piloted, compared against the current telemetry and cut over only after the results are accepted. It ends with the old packages and connection settings removed, so nothing is left sending data by accident.
Inventory services, SDKs and telemetry dependencies
The platform or observability team lists every service that uses an Application Insights SDK, the language and runtime, the SDK package and version, and where the connection string is set. Equally important, they record which telemetry the business depends on: dashboards, alert rules, workbooks, availability tests and any scheduled reports that query custom events, metrics or dependency data. Owners of each service confirm the list. The step is done when every service has an owner, a language, a version and a named set of dashboards and alerts that must keep working.
Choose the migration path for each language
For each language in the inventory, the team picks the target path using Microsoft's current migration guidance. New .NET, Node.js and Python adopters are directed to the Microsoft OpenTelemetry Distro, Application Insights .NET SDK 2.x users can move to 3.x or start fresh with the distro, and Java applications are directed to the Azure Monitor OpenTelemetry Distro. The team also decides where data goes: Azure Monitor directly, or the Collector with the Azure Monitor exporter (beta for traces, metrics and logs) or a self-hosted back end. The output is a decision record per language that names the package, the destination and the reason, and that the security team has reviewed.
Write comparison criteria before the pilot
Before any code changes, the team agrees in writing what a successful parallel run looks like. Criteria typically cover trace and request counts per operation, failed dependency rates, exception volume, the presence and names of custom attributes that dashboards filter on, latency added by instrumentation, and whether each alert rule fires on the same conditions. The owner of each dashboard signs off on the list. Writing the criteria first prevents the pilot from being judged after the fact. The step is done when the signed criteria document is stored with the migration record.
Pilot on one non-critical service
The team selects one low-risk service with clear ownership and migrates it to the chosen distro in a non-production environment first. The pilot tests the build pipeline, runtime configuration, connection string handling and any custom instrumentation the service relies on. Engineers document each change needed, including code that used the classic SDK's API and now needs a different call. The step is done when the pilot service runs in its target environment, produces telemetry at the destination, and the team has a list of issues and fixes that feeds the next steps.
Run both SDKs in parallel and compare results
For each service in the parallel run, the old and new instrumentation both send data, or the old SDK sends to Application Insights while the new pipeline sends to the target back end. Results are compared against the criteria written earlier, using the same time windows and the same dashboards and alert rules. Differences are investigated and classified as expected (for example, renamed operations or new span attributes) or defects. Parallel running adds telemetry cost and can double some ingestion charges, so the team should confirm the expected overlap period with the owner before it starts. The step is done when every criterion is met or each gap has an accepted explanation and fix.
Cut over each service and update alerts
The team switches each service to the new SDK as the only telemetry source, one service at a time, in a window agreed with its owner. Alert rules and dashboards that referenced old names or fields are updated and tested against the new data. Rollback steps are written and rehearsed, typically by restoring the previous package version and connection setting. Owners confirm that the service's dashboards and alerts show current data. The step is done when the service runs on the new SDK alone, the rollback path has been tested, and the owner has signed off in the migration record.
Decommission old packages and connection settings
Once every service in the wave is stable, the team removes the classic Application Insights packages from source control, build images and dependency manifests, and deletes the old connection settings from configuration stores, secrets and deployment templates. Access to any unused resources is reviewed and retired. Engineers check that no service still loads the old package at runtime by scanning deployed artifacts. The step is done when a scan of running services and repositories finds no remaining classic SDK references, and the inventory is updated to show the final state.
What drives the cost and duration of the migration
This table lists the factors that change the effort of moving from Application Insights classic SDKs to OpenTelemetry, and whether each one is paid once or recurs. Use it to see which questions to answer before asking for a quote, since the largest drivers are usually the number of services, custom telemetry code and dashboards tied to existing telemetry names.
| Driver | Why it changes effort | One-time or recurring, and what to ask for |
|---|---|---|
| Number of services and languages | Each .NET, Node.js, Python or Java service needs its own distro setup, test cycle and rollout step. | One-time. Ask for effort broken down per service and per language. |
| Application Insights SDK version in use | SDK 2.x users may upgrade to 3.x or start fresh with the distro, and the choice changes how much code is touched. | One-time. Ask which upgrade route the quote assumes and why. |
| Custom telemetry initializers and processors | Custom code that adds properties or filters telemetry must be rewritten against OpenTelemetry extension points. | One-time. Ask for an inventory of custom code and how each item is mapped. |
| Dashboards and alerts tied to existing telemetry names | Renamed or reshaped fields can break queries, workbooks and alert rules, so each one needs review and retesting. | One-time for the first move, recurring if teams keep editing queries. Ask for a count and a retest plan. |
| Back-end choice (Azure Monitor or self-hosted) | Azure Monitor keeps the current Application Insights setup, while a self-hosted back end adds storage, query tooling and access design. | One-time build, recurring hosting and support. Ask who runs the back end after handover. |
| Collector deployment model | Sending directly from services differs from routing through agent or gateway Collectors, which need configuration, scaling and monitoring. | One-time build, recurring operations. Ask for the sizing assumptions and the monitoring scope. |
| Environments that need a parallel run | Running old and new telemetry side by side doubles some ingestion and requires comparison work before cutover. | One-time for the comparison period, plus recurring data volume costs while both run. Ask for the parallel-run length and exit criteria. |
What usually goes wrong when moving off Application Insights SDKs
Moving from classic Application Insights SDKs to OpenTelemetry changes the telemetry that dashboards, alerts and cost reports depend on. Most problems come from six places: query and alert breakage, lost identity fields, sampling drift, secrets in configuration, beta exporter behavior and comparisons that never happen. Each card names the check that prevents it.
Dashboards and alerts break silently
Telemetry emitted by OpenTelemetry instrumentation can use different attribute names, span shapes and dependency types than the classic SDK. Queries that filter on old fields return empty results rather than errors, so alerts stop firing without notice. Before cutover, export the current Kusto queries, alert rules and workbooks, then map each field to its OpenTelemetry equivalent and test every alert against replayed or staged traffic.
Microsoft migration guideCloud role name and correlation lost
Application Insights uses the cloud role name and operation identifiers to group telemetry by service and link requests across components. If the new SDK or distro sets a different service name, or if trace context propagation is configured differently between services, the application map splits into disconnected nodes. Confirm the service.name resource attribute for every service and test a request that crosses two or more services before moving the rest.
Sampling changes volume and thresholds
Sampling settings do not carry over automatically. A migration that enables a different sampler, or leaves sampling out, can change ingested volume enough to shift alert thresholds and cost reports. Record current ingestion per table and request rate for a baseline period, set the sampling rate explicitly in the new configuration, and compare failure and latency alert outcomes before and after the change.
Connection strings left in configuration
The Azure Monitor exporter and distros are configured with an Application Insights connection string, and the same value often sits in appsettings files, environment variables or container images. Moving it into a secret store and removing it from source control is part of the migration, not an optional follow-up. Inventory every place the string appears, rotate it if it leaked into logs or repositories, and apply the Collector's redaction guidance to attributes that carry personal data.
Beta exporter used for production signals
The Collector contrib Azure Monitor exporter is beta for traces, metrics and logs, so the stability of each signal differs and may change between releases. Teams that route all three signals through it without a stated support position can be surprised by behavior changes after an upgrade. Decide per signal whether the exporter or a supported path carries it, pin the Collector version, and record the release notes you reviewed before each upgrade.
Azure Monitor exporter READMEParallel run never gets compared
Teams often run old and new telemetry side by side and then switch off the old SDK without comparing them. Without a written comparison, differences in counts, latency buckets and dependency names go unnoticed until an incident. Define the comparison before the parallel run starts: named dashboards, the query set, the acceptable differences and an owner who signs off. Keep the old SDK active until that sign-off is recorded.
Questions buyers ask before moving Application Insights services to OpenTelemetry
What drives the cost of moving Application Insights services to OpenTelemetry?
The cost depends mainly on how many services you have, which language each one uses, and how much custom telemetry they emit. Each service needs its SDK or instrumentation changed, its configuration rewritten, and its traces, metrics and logs compared before cutover. Services on the classic Application Insights .NET SDK 2.x may need a smaller change than services built on other SDKs, because Microsoft's guidance allows an upgrade to 3.x or a fresh start with the distro. One-time costs include the engineering work, test environments and dashboard and alert rebuilding. Recurring costs depend on your back end and telemetry volume, so ask any partner to separate one-time migration work from ongoing support in a written quote.
How long does an Application Insights to OpenTelemetry migration usually take?
The timeline is set by the number of services, the languages involved, and how many dashboards, alerts and workbooks depend on the current telemetry names. Teams usually run old and new instrumentation side by side for a period so they can compare data before they switch off the classic SDK. Java services move to the Azure Monitor OpenTelemetry Distro, while .NET, Node.js and Python services move to the Microsoft OpenTelemetry Distro, according to Microsoft's migration guidance. No duration has been fixed for your estate, so ask for a timeline based on an inventory of your services and their alerts.
What does the client team need to provide for the migration?
Your team needs to supply access to the services, build pipelines, deployment configuration and the Application Insights resources they report to. Engineers who own each service must confirm which custom events, metrics and dependencies matter, because those are the signals that most often break when names or schemas change. Platform or security staff must approve where the telemetry is sent, how connection strings and credentials are stored, and who can read the data. Operations staff should list the dashboards, workbooks and alert rules to be preserved. Ask any partner to name these inputs in the written scope before work starts.
Can our internal team migrate the services without outside help?
Yes, many internal teams can migrate their own services, especially if they already run Application Insights and know their telemetry. The work is mostly code and configuration change plus careful verification, so the main gaps are usually time and experience with OpenTelemetry concepts such as the Collector, exporters and semantic conventions. Teams should weigh the cost of their engineers' time against the risk of losing alerts or dashboards during cutover. An outside partner can take on the inventory, parallel running, and verification, while your team keeps ownership of the services. Decide this per service group, not for the whole estate at once.
Is Application Insights SDK 3.x enough, or do we need OpenTelemetry?
An upgrade to SDK 3.x can be enough for some .NET teams, but it is not the only path. Microsoft's guidance says Application Insights .NET SDK 2.x users can upgrade to 3.x or start fresh with the distro, so the choice depends on your long-term direction and your other languages. If you need one instrumentation model across Java, Node.js, Python and .NET, or want to send data to a back end other than Azure Monitor, OpenTelemetry is the better fit. Check which features your current dashboards and alerts depend on before you choose, because the upgrade path may change some data.
Can we keep Azure Monitor as the back end after moving to OpenTelemetry?
Yes. The distros send telemetry to Azure Monitor, and the Collector's Azure Monitor exporter can also send data to Application Insights using a connection string. The Collector contrib exporter is in beta for traces, metrics and logs, so confirm its current maturity against the exporter README before relying on it for production. If you want a self-hosted back end, the Collector can export to it instead, but you will need to plan storage, query tools, retention and access control yourself. Ask for the back-end choice to be recorded in the scope.
How DeployOpen works on this
DeployOpen plans, implements and hands over self-hosted OpenTelemetry pipelines inside your own cloud accounts, data centers or controlled networks. For a move off Application Insights classic SDKs, we start by inventorying which services, languages and telemetry paths are in play, then agree the migration order and deliverables in writing before any code changes.
How we scope
- Inventory each .NET, Node.js, Python and Java service and its current Application Insights SDK version.
- Decide per service whether an upgrade to SDK 3.x is enough or a move to a Microsoft distro is needed.
- Agree in writing whether data goes to Azure Monitor or a self-hosted back end, and which Collector deployment pattern applies.
How we build
- Instrument services in a non-production environment first, then compare traces, metrics and logs against the classic SDK output.
- Configure Collector pipelines with Application Insights connection strings held in a secrets store, not in plain configuration files.
- Test authentication on Collector receivers and exporters, and confirm the Azure Monitor exporter's beta status applies to your signals.
How we hand over
- Document each service's instrumentation change, configuration keys, rollback steps and known gaps against the classic SDK.
- Provide a dashboard and alert mapping so operations teams can see which queries changed and which still need rework.
- Walk your platform and operations engineers through running, upgrading and troubleshooting the pipelines before handover closes.
How we support
- Ongoing support, Collector upgrades and continuous testing are available as a retainer after handover.
- Plan the Collector version upgrade cadence with your team so each release is tested before it reaches production.
- Re-run verification checks when services change or when you move the telemetry back end later.

