我有一个托管在 Linux 应用服务上的 NodeJS 服务。该服务使用 npm 包
"applicationinsights": "^1.8.10"
来设置应用洞察记录,如下所示
appInsights.setup('<key from env>')
.setAutoDependencyCorrelation(true)
.setAutoCollectRequests(true)
.setAutoCollectPerformance(true, true)
.setAutoCollectExceptions(true)
.setAutoCollectDependencies(true)
.setAutoCollectConsole(true,true)
.setUseDiskRetryCaching(true)
.setSendLiveMetrics(false)
.setDistributedTracingMode(appInsights.DistributedTracingModes.AI_AND_W3C)
.start();
除此之外,在Azure Portal上,我还开启了服务下的Application Insights
我注意到,在打开此开关并在代码中设置应用程序洞察后,我的日志不相关。打开每个单独的日志将使我只看到那一行而不是完全相关。关闭它然后相关性恢复正常
任何人都可以帮助解释为什么同时启用这两个选项会关闭相关性吗?