WPF应用程序的Application Insights采样

问题描述

我想了解WPF应用程序(.Net v4.6.2)可用的采样选项。从documentation可以理解,对于这种情况,仅允许Ingestion Sampling,因为使用Application Insights SDK(v2.6.4)无法应用其他采样选项。我对WPF应用程序中的Adaptive SamplingFixed-Rate Sampling的理解是否正确?如果没有,该如何在SDK级别进行设置。

解决方法

对于非网络项目,您可以考虑使用Microsoft.ApplicationInsights.WorkerService进行自适应/固定速率采样。

有关更多详细信息,请参阅thisthis部分。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...