I currently have a problem where App Insights isn't showing the exceptions in .Net Core. I am also using ServiceStackCore to build my API.
This is what it currently looks like in the Azure portal under Application Insights: Screenshot of Azure portal
As you can see, the response codes all show 400, 403, 500. But there are no exceptions:
I have found a round-about route to get the Exceptions:
var telemetry = new TelemetryClient();
...
try
{ ...
}
catch (Exception ex)
{
telemetry.TrackException(ex);
}
I am wanting to know if ServiceStack has any inbuilt exception handling that might be muting exceptions that are supposed to be caught by app insights?
And if there is any out of the box configuration that can be done in App Insights to show these exceptions without having to add the try-catch block?