我读过 Azure 中的文档(https://learn.microsoft.com/en-us/azure/azure-monitor/app/api-custom-events-metrics#debug https://learn.microsoft.com/en-us/azure/azure-monitor/app/api-custom-events-metrics#debug)但无法了解如何启用开发人员模式以获取应用程序见解。
如何在 Azure Application Insights for node.js 中启用开发人员模式?
.NET Application Insights SDK 中的开发人员模式可以执行多项操作,主要是启用调试消息并禁用遥测批处理。
虽然 Node SDK 没有一个设置可以执行此操作,但您可以通过同时使用以下两个设置来获得相同的行为:
appInsights.setup(...).setInternalLogging(true, true)
启用调试消息
appInsights.defaultClient.config.maxBatchSize = 1
禁用批处理
对于第二个命令,请确保替换appInsights.defaultClient
对于您自己的 TelemetryClient 实例(如果您已经实例化了自己的实例)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)