从应用程序见解自定义指标中删除System.Runtime

问题描述 投票:0回答:1

我仅记录一个自定义指标(未显示)。其余的似乎都来自System.Runtime。我正在使用.AddApplicationInsightsTelemetryWorkerService()和依赖项注入TelemetryClient。如何停止我的服务从System.Runtime发出所有这些自定义指标?我很担心,因为它们要花钱。

Custom Metrics

.net azure-application-insights metrics background-service azure-monitoring
1个回答
0
投票

我禁用了此选项,它不再发出那些事件。

.AddApplicationInsightsTelemetryWorkerService(options =>
{
    options.EnableEventCounterCollectionModule = false;
})
© www.soinside.com 2019 - 2024. All rights reserved.