To ensure all Exceptions are logged by my MVC application, I’ve excluded Exception data from adaptive sampling as follows:
<ExcludedTypes>Event;Exception</ExcludedTypes>
The issue I’m seeing in Application Insights portal is that although the Exception itself is logged as expected, the Request data that it’s associated with is still being adaptively sampled. So sometimes the Request information, like URL, etc. cannot be queried in Log Analytics.
Is there any way to ensure that Request information associated with Exceptions is also not filtered as part of adaptive sampling. Obviously without turning off adaptive request filtering completely.
Recognized by Microsoft Azure Collective