问题描述
我想了解WPF应用程序(.Net v4.6.2)可用的采样选项。从documentation可以理解,对于这种情况,仅允许Ingestion Sampling
,因为使用Application Insights SDK(v2.6.4)无法应用其他采样选项。我对WPF应用程序中的Adaptive Sampling
和Fixed-Rate Sampling
的理解是否正确?如果没有,该如何在SDK级别进行设置。
解决方法
对于非网络项目,您可以考虑使用Microsoft.ApplicationInsights.WorkerService进行自适应/固定速率采样。