我仅记录一个自定义指标(未显示)。其余的似乎都来自System.Runtime。我正在使用.AddApplicationInsightsTelemetryWorkerService()
和依赖项注入TelemetryClient
。如何停止我的服务从System.Runtime发出所有这些自定义指标?我很担心,因为它们要花钱。
我禁用了此选项,它不再发出那些事件。
.AddApplicationInsightsTelemetryWorkerService(options =>
{
options.EnableEventCounterCollectionModule = false;
})