I have a web service that is not logging exceptions in Application Insights

Tim C 0 Reputation points
2023-10-11T17:58:06.97+00:00

I have several web services logging telemetry to application insights. All of them except one are working as expected. One of them is not logging any exceptions. We know there are exceptions as we have Serilog writing them to a sql table. All of our web services are configured the same way. All of the others are reporting exceptions fine.

I have checked the connection string, and the referenced application insights package versions. Here is info about the current setup:

App service: .Net 7

Visual Studio: Microsoft Visual Studio Professional 2022 Version 17.7.4

Packages:

  • Microsoft.ApplicationInsights.AspNetCore - 2.21.0
  • Microsoft.ApplicationInsights.DependencyCollector - 2.21.0
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,658 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.