Search code examples
azureazure-web-app-serviceload-testingazure-application-insightsazure-api-management

Azure AppInsights - Http Result code Faulted


We have configured APIM, WebApp in Azure and then connected AppInsights Log to get the details in case of failure.

We are doing load testing on APIM.

At one point, we started getting 500 error code which means that there is issue at application level.

When we looked in details, at one point, we got http result code as "Faulted" & we do not get any errors underneath API, servers.

So I would like to know what means by "Faulted"?

A


Solution

  • Here's an explanation from the ApplicationInsights-dotnet repo issues on HttpCoreDiagnosticListener tracks exceptions

    This issue is about DependencyCollection module tracking an Exception event along with a DependencyTelemetry in the event of client side errors like DNS. The exception is sent to user ikey, along with DependencyTelemetry.

    If this exception is not tracked, then the only information DependencyCollector has is that call failed, and resultCode as "Faulted". We should modify the result code to be more useful, before removing the actual exception.

    Btw, DependencyCollection for .NET Framework does not track this exception, so making netcore also behave same is good for consistency point.