我有一个启用了Application Insights的ASP.NET Web Api应用程序(最新版本)。该应用程序具有附加的自定义ExceptionFilterAttribute
,可将每个异常显式转换为HttpResponseMessage
。这意味着不会将任何服务器异常自动发送到Application Insights。也不会收集分析快照。
如果我手动发送例外:
var telemetryClient = new TelemetryClient();
telemetryClient.TrackException(exception);
这是否等同于默认的Application Insights行为? 如何使其能够收集概要分析快照?