This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
Duplicate exceptions from Ilogger + RequestTrackingModule #861
Closed
Description
openedon Apr 6, 2019
When an exception is thrown from Controller, RequestTrackingModule reports it.
https://github.com/Microsoft/ApplicationInsights-aspnetcore/blob/develop/src/Microsoft.ApplicationInsights.AspNetCore/DiagnosticListeners/Implementation/HostingDiagnosticListener.cs#L480
Since ILogger is also enabled by default now, it also captures this exception.
Repro Steps
- Use any WebAPI app, and throw unhandled exception from controller.
Actual Behavior
2 exception telemetry, 1 from Ilogger, 1 from request tracking module
Expected Behavior
1
Version Info
SDK Version :
.NET Version :
How Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) :
OS :
Hosting Info (IIS/Azure WebApps/ etc) :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment