Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Duplicate exceptions from Ilogger + RequestTrackingModule #861

@cijothomas

Description

@cijothomas

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

  1. 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) :

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions