Azure AppInsights - Http 结果代码错误

Azure AppInsights - Http Result code Faulted

我们已经在Azure中配置了APIM、WebApp,然后连接AppInsights Log以获取失败时的详细信息。

我们正在 APIM 上进行负载测试。

有一次,我们开始收到 500 错误代码,这意味着应用程序级别存在问题。

当我们查看详细信息时,有一次,我们得到的 http 结果代码为 "Faulted" 并且我们在 API、服务器下没有发现任何错误。

所以我想知道"Faulted"是什么意思?

这是 HttpCoreDiagnosticListener tracks exceptions

ApplicationInsights-dotnet 回购问题的解释

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.