Weird applicactionInsights.config after NuGet package update
See original GitHub issueHI,
I’ve noticed that AI config file became pretty strange after I’d updated from 2.2.0 to 2.5.1 version. Here’s the weird section:
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
<ExcludedTypes>Event</ExcludedTypes>
</Add>
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
<IncludedTypes>Event</IncludedTypes>
</Add>
Steps to reproduce:
- Create an ASP.NET MVC project using VS 2017.
- Check that the version of AI package is 2.2.0 (or, probably, just lower than 2.5.1)
- Check that ApplicationInsights.config has only one section for
Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor
. In my case it didn’t contain neither Included nor Excluded types subsection. - Upgrade the package to 2.5.1
- Observe the changes in ApplicationInsights.config.
Could you please clarify the following questions:
- Is it an expected behaviour?
- If so, what would that mean? How can sampling be turned off and on at the same time?
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Deprecation of all previous Azure Application Insights ...
* packages on nuget.org have all switched to being deprecated. This feels unusual for a minor release, and it's not acknowledged in the...
Read more >Application insights logs only 401 when .NET web ...
Update all ApplicationInsights nuget packages; Make own AI handler, catch DependencyTelemetry: no data about the second 200 request; tried to change the first ......
Read more >Builds stopped working - Developer Community
Hi. I'm aware there is currently a nuget problem in AzureDevops, but unsure if this is another symptom, related or bizarre co-incidence.
Read more >ApplicationInsights.config reference - Azure Monitor
This article describes the sections you see in the configuration file, how they control the components of the SDK, and which NuGet packages...
Read more >6 steps to integrate Application Insights with .Net Core ...
Install the Microsofot.ApplicationInsights.AspNetCore nuget package shown above. Once you install, you can see the package added to the Project ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@drauch, this is a little bit more complicated =)
ExcludedTypes indeed means “types you don’t want to be sampled”. But this refers to individual sampling telemetry processor.
In default configuration we add two telemetry processors. One with excluded events, another one with included events. The first one doesn’t touch events. But the second one touches only events.
Please let me know whether this clarifies…
In https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling#configuring-adaptive-sampling-for-aspnet-applications it sounds like
ExcludedTypes
means “types you don’t want to be sampled” and not “all other types are being sampled”.