question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird applicactionInsights.config after NuGet package update

See original GitHub issue

HI,

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:

  1. Create an ASP.NET MVC project using VS 2017.
  2. Check that the version of AI package is 2.2.0 (or, probably, just lower than 2.5.1)
  3. 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.
  4. Upgrade the package to 2.5.1
  5. Observe the changes in ApplicationInsights.config.

Could you please clarify the following questions:

  1. Is it an expected behaviour?
  2. If so, what would that mean? How can sampling be turned off and on at the same time?

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
zakimaksyutovcommented, Mar 25, 2019

@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…

0reactions
drauchcommented, Mar 25, 2019

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”.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found