Application Insights重复的依赖关系日志

时间:2017-09-12 07:54:32

标签: asp.net-mvc azure azure-application-insights

我为生产webapp配置了Application Insights。安装了nuget软件包,配置了AppInsights.config和Web.config(默认配置),除了动态设置检测密钥之外,我在代码库中没有任何更改。 看到多次记录相同的依赖项是正常的,为什么会发生?而“多次”是指15-20。

实施例: enter image description here

SQL事件探查器仅显示1个SQL查询,因此问题仅在于日志记录。 同样发生在(AJAX)依赖关系中。任何想法可能是问题的根源?

编辑: 来自analytics.applicationinsights.io的数据显示只有时间戳不同: enter image description here

EDIT2: https://pastebin.com/CAUQTGVi

    {"name":"Microsoft.ApplicationInsights.INSTKEY.RemoteDependency","time":"2017-09-18T07:17:08.9288418Z","iKey":"INST-KEY","tags":{"ai.operation.parentId":"|cVw20.519d7d1f_","ai.session.id":"9U54e","ai.operation.id":"cVw20","ai.operation.name":"POST OrderItemTileBrowser/List","ai.location.ip":"::1","ai.cloud.roleInstance":"PC-JOHNDOE.Company.local","ai.user.id":"J9s5n","ai.internal.nodeName":"PC-JOHNDOE.Company.local","ai.user.authUserId":"iTos","ai.internal.sdkVersion":"rddf:2.4.0-32470"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"SQL\\PRODUCTION | SomeDatabaseName","id":"|2piZlu5+k1o=.519d7d46_","duration":"00:00:00.0012586","success":true,"type":"SQL","target":"SQL\\PRODUCTION | SomeDatabaseName","properties":{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.0')"}}}}
    {"name":"Microsoft.ApplicationInsights.INSTKEY.RemoteDependency","time":"2017-09-18T07:17:08.9308469Z","iKey":"INST-KEY","tags":{"ai.operation.parentId":"|cVw20.519d7d1f_","ai.session.id":"9U54e","ai.operation.id":"cVw20","ai.operation.name":"POST OrderItemTileBrowser/List","ai.location.ip":"::1","ai.cloud.roleInstance":"PC-JOHNDOE.Company.local","ai.user.id":"J9s5n","ai.internal.nodeName":"PC-JOHNDOE.Company.local","ai.user.authUserId":"iTos","ai.internal.sdkVersion":"rddf:2.4.0-32470"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"SQL\\PRODUCTION | SomeDatabaseName","id":"|kI7U4BuILOs=.519d7d47_","duration":"00:00:00.0018574","success":true,"type":"SQL","target":"SQL\\PRODUCTION | SomeDatabaseName","properties":{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.0')"}}}}
...

发送到AI服务器的数据(使用Fiddler捕获,一些敏感信息替换为虚拟占位符)

我找到的唯一相关主题(没有提及重复记录的项目),绝对不回答我的问题,也没有给我一个可接受的解决方案:https://social.msdn.microsoft.com/Forums/vstudio/en-US/97d9f0b0-9d1e-4261-b80f-c7b7f07ecfe2/telemetry-throttling-how-can-i-cut-back-on-telemetry-events-disable-dependancy-events?forum=ApplicationInsights

0 个答案:

没有答案