Reputation: 4731
I'm running an app service (ASP.NET 7) and I'm using default settings for application insights. I've recently learned that by defauult, Adaptive Sampling is enabled. I've noticed that when traffic spikes to my app, I'm missing logs that would be useful for debugging. I'd like to disable adaptive sampling. But first, I'd like to understand if there's any potential for this change to have an adverse effect on the performance of my app service instance.
Upvotes: 1
Views: 472
Reputation: 29840
I doubt that any performance penalty is noticeable. The telemetry is already caputered anyway and the decision to discard data due to sampling is done on a background thread, as is sending the data using batches. There will be a (small?) increase of network traffic but that's about it.
Adaptive sampling isn't so much about web app performance as it is about managing the costs of the Azure resource as you pay for the volume of data ingested and stored.
Upvotes: 1