Angular Application Insights在trackException方法中重复记录异常

Angular Application Insights在trackException方法中重复记录异常,angular,azure-application-insights,azure-application-insights-profiler,Angular,Azure Application Insights,Azure Application Insights Profiler,我有Angular 5 Web应用程序,其中配置了1.0.20版的Application Insights js(applicationinsights js)。[ 以下异常持续记录在我们的生产应用程序洞察中,因为许多用户受到影响 Application Insights在其自己的程序集中重复记录trackException方法的异常“” //这是我的ApplicationInsightsService角度服务。 导出类ApplicationInsightsService{ 艾奇:弦; 构造

我有Angular 5 Web应用程序,其中配置了1.0.20版的Application Insights js(applicationinsights js)。[

以下异常持续记录在我们的生产应用程序洞察中,因为许多用户受到影响

Application Insights在其自己的程序集中重复记录trackException方法的异常“”

//这是我的ApplicationInsightsService角度服务。
导出类ApplicationInsightsService{
艾奇:弦;
构造函数(专用http:HttpClient){
这个.initializeApplicationInsights();
}
公共初始化应用程序名称(){
if(sessionStorage.getItem('ikey')){
AppInsights.downloadAndSetup({instrumentationKey:sessionStorage.getItem('ikey')});
}
}
//跟踪Appinsights中的异常
公共日志异常(e:错误,处理地址?:字符串,属性?:任意,度量?:任意){
AppInsights.trackException(e、handledAt、属性、测量);
}
}
`
//在Angular中,我有全局错误处理程序,
//我们记录异常的地方。
const applicationInsightsService=this.injector.get(applicationInsightsService);

applicationInsightsService.logException(error);
让我检查一下,然后再回来,如果你能提供一个代码示例就好了。我也有这种错误。