We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ccaf00 + 457f057 commit 39b6607Copy full SHA for 39b6607
articles/azure-monitor/app/asp-net-exceptions.md
@@ -247,7 +247,8 @@ namespace MVC2App.Controllers
247
{
248
if (filterContext != null && filterContext.HttpContext != null && filterContext.Exception != null)
249
250
- //If customError is Off, then AI HTTPModule will report the exception
+ //The attribute should track exceptions only when CustomErrors setting is On
251
+ //if CustomErrors is Off, exceptions will be caught by AI HTTP Module
252
if (filterContext.HttpContext.IsCustomErrorEnabled)
253
{ //or reuse instance (recommended!). see note above
254
var ai = new TelemetryClient();
0 commit comments