gpt4 book ai didi

Azure App Insights 未显示所有请求

转载 作者:行者123 更新时间:2023-12-02 07:51:30 25 4
gpt4 key购买 nike

最近以来,我们的应用服务的 App Insights 不再记录所有请求和所有失败。实际请求数比 App Insights 显示的多很多倍。奇怪的是,App Insights 中有一些记录的事件,但实际数量要高得多。可能是什么问题?

enter image description here

更新:我检查了数据采样设置,它最近没有更改,并且在App Insights -> 使用情况和估算成本 中设置为 100%(所有数据)。从本页的图表可以看出,自5月11日以来,事件数量大幅下降。我不知道有什么因素会导致事件数量下降。

enter image description here

最佳答案

我们今天遇到了同样的问题,我相信答案确实与采样有关,正如其他人所建议的那样。需要注意的是,如果您有其他采样设置(即自适应或固定速率采样),则不会考虑您在 Azure 门户中引用的采样 (100%)。

当您在 Azure 门户中更改采样(也称为摄取采样)时,您会看到以下注释:

There may be additional sampling also happening by the SDK before datais sent to the Application Insights servers. If your SDK has adaptivesampling enabled or you have manually added code to enable sampling,no ingestion sampling will be applied regardless of the setting above.Learn more about Data Sampling

如果你看MS documentation ,您还将阅读以下有关摄取采样的内容:

It only applies when no other sampling is in effect. If the SDK samplesyour telemetry, ingestion sampling is disabled.

另请注意,如果您部署了 ASP.NET/ASP.NET Core 应用程序,则将默认启用自适应采样,这可能解释了对数据进行采样的原因。

enter image description here

关于Azure App Insights 未显示所有请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76289722/

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