Announcing Azure Monitor OpenTelemetry Distro

Matt McCleary

Sam Spencer

Our goal is to make Azure the most observable cloud. To that end, we are refactoring Azure’s native observability platform to be based on OpenTelemetry, an industry standard for instrumenting applications and transmitting telemetry.

These investments include plans to retrofit the Azure Monitor ingress and all our Azure SDKs to use OTLP for traces and metrics, making it possible to use any language OpenTelemetry supports on Azure. As part of these investments, we have strong support for observability in .NET, where telemetry can be collected using the OpenTelemetry SDK for .NET.

One advantage of OpenTelemetry is that it’s vendor-neutral. For example, the exporter model enables the data to be used with a variety of APM systems, including open-source projects such as Prometheus, Grafana, Jaeger & Zipkin, and commercial products such as Azure’s native monitoring solution, Azure Monitor.

When it comes to Azure’s native observability solution, Azure Monitor, we want to make it as easy as possible for you to enable OpenTelemetry. The “Azure Monitor OpenTelemetry Distro” is your one-stop-shop to power Azure Monitor. While we are currently focused on lighting up Application Insights, we plan to expand this Distro to cover other scenarios within Azure Monitor in the future, such as piping special purpose logs/events to your own custom-defined table in Log Analytics.

OpenTelemetry and .NET can have different terminology for the same things – Open Telemetry is a cross platform standard where vendors create “distros” for multiple languages. While distro is often thought of in the context of Linux, in this case, the term “distro” is equivalent to library or package that bundles together OpenTelemetry components. For .NET this Distro is shipped as the Nuget Package Azure.Monitor.OpenTelemetry.AspNetCore and is backed by a github project.

Introducing ILogger Correlation

Before we get into the details of the Azure Monitor OpenTelemetry Distro, we want to catch you up on how far OpenTelemetry has come on .NET:

  • In March 2021, we announced that OpenTelemetry Tracing APIs would be part of .NET 5.
  • In June 2021, we announced that OpenTelemetry metrics API would be part of .NET 6.

With the help of the OpenTelemetry SDK, logging using ILogger now supports the automatic capturing of Activity IDs for correlation to traces, so all three signal types are now available for full end-to-end observability. The video shows how to see this correlation in Application Insights.

How to make OpenTelemetry easier to use on Azure?

One of the challenges for observability solutions like Azure Monitor is making it easy for customers to get started with OpenTelemetry.

There’s an initial learning curve where application developers must teach themselves the basics of OpenTelemetry, consider which instrumentation libraries they need, assess which configurations matter to their scenario, and determine whether any vendor-specific processors are required for interoperability with their existing APM.

Setting all this up requires learning lots of new concepts, and developers are forced to keep track of several moving parts.

In addition, OpenTelemetry provides a rich API surface with dozens of instrumentation libraries to enable the wide range of observability scenarios customers may need. We received feedback from developers that they want a simpler entry point to follow that enables the best practices for monitoring their ASP.NET core web applications with Azure.

Introducing the Azure Monitor OpenTelemetry Distro

To make this enablement easier, the distro includes helper methods that enable Azure Monitor Experiences including Application Insights with just a single line of code.

var builder = WebApplication.CreateBuilder(args);


var app = builder.Build();


With the single line of code, the Distro includes everything you need for a first-class Azure experience, including:

  • Popular instrumentation libraries for auto-collection of traces, metrics, and logs
  • Correlated traces when using Application Insights SDKs in other parts of your service
  • Azure Active Directory (AAD) Authentication
  • Application Insights Standard Metrics
  • Automatic detection of Azure Resources to auto-populate key experiences.

In the months to come, we plan to add more features to the Distro including Live Metrics. With OpenTelemetry semantic conventions reaching stability, Azure SDK instrumentation will provide insights into your app’s communication with Azure Services. This will bring observability to messaging scenarios.

As we adapt our backend systems, you’ll get the full benefits of OpenTelemetry including exemplars and histograms. Over time, we hope to contribute back some of these unique Azure-Specific features to OpenTelemetry so they are part of the broader community, but our commitment is to get the best to our customers as soon as possible via the Distro.

In addition to ASP.NET core, we are also releasing Azure Monitor OpenTelemetry Distros in JavaScript (Node.js) and Python. We have had an OpenTelemetry-based Java Distro in production for several years, and it’s been encouraging to see strong adoption of Java Observability on Azure Monitor.

Open and Extensible Design

Even though this is a “vendor-specific wrapper”, our design is open and extensible. Our goal is ease-of-use; not vendor-lock. It follows the layered approach for telemetry APIs in .NET.

Diagram showing the layered approach of the Azure Monitor OpenTelemetry Distro

For example, let’s say down the road you want to add a second exporter. You can instantiate one alongside Azure Monitor Exporter. You can also add community instrumentation libraries not already bundled in with the Distro to expand data collection.

When to use the Distro versus the Exporter?

For the majority of ASP.NET Core customers, we anticipate the distro will be attractive because monitoring can quickly become complicated, and we want to take the guess work out of it. However, there will be some customers who want to touch all the knobs and levers, and for these customers the Azure Monitor exporter is still available as a standalone component. For all other application types besides ASP.NET Core, the exporter remains our recommended solution for now.

How do I get started?

Getting started with the distro is simple. It’s only a few steps documented on Azure Monitor Application Insights OpenTelemetry Enablement Official Docs. Check it out and let us know what you think. Join the chat at the bottom of the page, open an issue on Github, or send us some feedback at


Discussion is closed. Login to edit/delete existing comments.

  • Julio Casal 5

    This is great, being using OpenTelemetry for a while but always missed a way to export directly to App Insights, as opposed to Seq/Jaeger/Prometheus, which I have to deploy to Azure myself to see the correlation.

    Looking forward to trying it out!

    • Matt McClearyMicrosoft employee 1

      Thanks Julio! We look forward to your feedback. We are making improvements every month!

  • Sami Ovaska 2

    What is the plan of supporting this on Azure Functions in isolated mode?

    • Matt McClearyMicrosoft employee 0

      Hi Sami, I have a kicked off a thread with the Functions folks, and they’re receptive to it. It’s something we’d like to see happen, but we don’t have any active plans yet. What programming language function are you running? What are you hoping to get out of your Observability data collection / solution on your Functions?

      • Jelle Botterman 1

        Would like to see this on dotnet isolated functions as well

      • Jelle Botterman 1

        We need End-To-End tracing from the first request coming in through all of the steps that follow (Service Bus, requests to external API’s and so on…).

  • John King 2

    Can I use it locally ?

    • Matt McClearyMicrosoft employee 2

      Hi Josh, Yes you can run your app locally during dev/test and the telemetry will still flow to Azure Monitor Application Insights.
      Any more details about your scenario to better understand?

  • Georgi Hadzhigeorgiev 0

    Really great!
    Just, can’t you come with less confusing name?

    • Matt McClearyMicrosoft employee 2

      Hi Georgi, thanks for the feedback. OpenTelemetry has gone down the path of using the word “distro” and we didn’t want to be special or different.
      That said, any suggestions on a better name that would be less confusing?

      • Georgi Hadzhigeorgiev 2

        Hi Matt,

        Yeah, I understand it is difficult to come up with a better name. Perhaps, “Azure Monitor OpenTelemetry Insights” or “Azure Monitor OpenTelemetry Journal”, not sure myself 🙂

  • Fabian Schmied 0

    How will the different Application Insights telemetry types (trace, request, dependency, event, metric, exception) map to Open Telemetry? Are all of them supported?

    • Fabian Schmied 1

      One more detail question regarding the mapping: Will all ILogger log messages with an attached exception be mapped to the exception telemetry type? At first glance, this might seem to make sense. But at second glance, it’s actually problematic because Application Insights interprets all exception telemetry as a “failure”, whereas an info log message might contain a caught exception for diagnostic reasons, even though it indicates normal operation. (See, e.g., this Github issue.)

      • Matt McClearyMicrosoft employee 1

        Hi Fabian, these are great questions.

        At a high level, we map OTel logs to the trace table, client spans to the dependency table and server spans to the requests table. Span events also land in the trace table. There’s no events equivilent in OTel yet. Exception and Metric are the same across OTel and AI. Does this answer your question? The actual mappings are a bit more nuanced and in a private repo (that we could possibly make public if it helps you).

        As to the exceptions, I believe by default we only capture the uncaught exceptions and drop the others. This is to minimize cost and as you mentioned, otherwise the experience would look scary/red when it’s not truly an issue. I can add a note to the docs re exceptions.

  • Julio Casal 0

    Here’s a step by step tutorial on how to use this:

Feedback usabilla icon