应用洞察 |有时端到端交易细节不显示所有遥测 [英] Application insights | Sometimes End-to-end transaction details do not show all telemetry

查看:21
本文介绍了应用洞察 |有时端到端交易细节不显示所有遥测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 azure 上部署了 .Net 核心应用程序并启用了应用程序洞察.有时,Azure 应用程序洞察端到端事务详细信息不会显示所有遥测数据.

I have .Net core App deployed on azure and enabled application insights. Sometimes Azure application insights End-to-end transaction details do not display all telemetry.

这里只记录错误,不记录请求,或者请求记录但两者不一起显示在这里(由于很多人使用它很难找到)

Here it only logs the error and not request or maybe request logged but both do not display together over here(difficult to find out due to many people use it)

应该是这样的:

有时会请求日志但没有错误日志.

Sometimes request log but with no error log.

发生这种情况的原因可能是什么?我是否需要研究应用洞察的特定设置/功能?

What could be the reason for happening this? do I need to look into application insights specific set-up/feature?

正如这里的人所建议的,尝试禁用采样功能但仍然无效,这里 也是开放问题.

As suggested by people here, try to disable the Sampling feature but still not works, Here is open question as well.

推荐答案

这通常是由于采样而发生的.默认情况下,在 ApplicationInsights.config 中启用自适应采样,这基本上意味着每个遥测项目类型(事件、请求、依赖项、异常等)只有一定百分比的发送到应用程序洞察.在您的示例中,端到端事务的一部分可能被发送到服务器,另一部分被采样.如果需要,您可以关闭特定类型的采样,或完全删除

This usually happens due to sampling. By default, adaptive sampling is enabled in the ApplicationInsights.config which basically means that only a certain percentage of each telemetry item type (Event, Request, Dependency, Exception, etc.) is sent to Application insights. In your example probably one part of the end to end transaction got sent to the server, another part got sampled out. If you want, you can turn off sampling for specific types, or completely remove the

自适应采样遥测处理器

来自完全禁用采样的配置.请记住,这会导致更高的摄取流量和更高的成本.如果您愿意,您还可以在代码本身中配置采样.请在此处找到有关采样工作原理的完整概述并且可以配置.

from the config which completely disables sampling. Bear in mind that this leads to higher ingestion traffic and higher costs. You can also configure sampling in the code itself, if you prefer. Please find here a good overview of how sampling works and can be configured.

这篇关于应用洞察 |有时端到端交易细节不显示所有遥测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆