gpt4 book ai didi

c# - Application Insights 不记录性能计数器数据

转载 作者:太空宇宙 更新时间:2023-11-03 15:27:25 24 4
gpt4 key购买 nike

我有一个控制台应用程序,它使用 Application Insights 来记录遥测数据。它能够记录事件。但是没有记录性能计数器。

var perfCollectorModule = new PerformanceCollectorModule();
perfCollectorModule.Counters.Add(new PerformanceCounterCollectionRequest(
@"\Sales(electronics)\# Items Sold", "Items sold"));
perfCollectorModule.Initialize(TelemetryConfiguration.Active);

最佳答案

您是否已确认运行该应用程序的用户是“Performance Monitor Users”组的成员?

关于c# - Application Insights 不记录性能计数器数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34706468/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com