tabs ↹ over ␣ ␣ ␣ spaces

by Jiří {x2} Činčura

Application Insights’ sampling ratio affecting other Open Telemetry exports

4 Aug 2025 2 mins Application Insights, Azure, OpenTelemetry, SigNoz, Smart home

I have a small .NET application that manages some specific parts of my Software Defined House aka Smart home. Recently, I decided to transition from Application Insights and I found an unexpected behavior when using pure Open Telemetry exporter.

Let me explain why I’m moving away from Application Insights. While I appreciate the service and its features (really, it does 99 % of what I want), the underlying Log Analytics costs are quite high for my personal application, even with a 10 % SamplingRatio. If it were more affordable, I would continue using it.

To ensure smooth migration, I decided to send the logs and traces to a new place (self-hosted SigNoz, in case you’d like to ask) as well as still to Application Insights. For Application Insights I’m using Azure.Monitor.OpenTelemetry.Exporter, for SigNoz regular OpenTelemetry.Exporter.OpenTelemetryProtocol. As mentioned above, I have SamplingRatio of 0.1f (10 %) for Application Insights.

While setting alerts up in SigNoz, I noticed they weren’t firing as they did in Application Insights. After some investigation, I realized that SigNoz was also receiving only 10 % of the events. It turns out the SamplingRatio of Azure.Monitor.OpenTelemetry.Exporter affects the entire OTEL exporting. In hindsight, this makes sense. (Interestingly, Application Insights shows the correct count of operations, with only the actual samples missing, which is quite smart.)

Now you and I both know the details, so if you ever experience this, you’ll know exactly what to look for.

The final decision to make is whether to run without sampling for a short period (and incur higher costs) or trust that my alerts are set up correctly and switch over directly.

Profile Picture Jiří Činčura is .NET, C# and Firebird expert. He focuses on data and business layers, language constructs, parallelism, databases and performance. For almost two decades he contributes to open-source, i.e. FirebirdClient. He works as a senior software engineer for Microsoft. Frequent speaker and blogger at www.tabsoverspaces.com.