gpt4 book ai didi

azure - 如何在 Application Insights 中设置请求遥测中的源列值?

转载 作者:行者123 更新时间:2023-12-03 06:51:24 24 4
gpt4 key购买 nike

我已配置应用程序洞察。在请求遥测数据中,我看到大多数 api 请求都没有设置源列。有一些 api 是为其设置的。我无法理解用于在请求遥测中设置源列的逻辑。

我已经阅读了文档,没有帮助。

最佳答案

文档中有解释。

When the number of storage items is large, you'll need a hint about where to look next. The Application Insights data model defines two fields to solve this problem: request.source and dependency.target. The first field identifies the component that initiated the dependency request. The second field identifies which component returned the response of the dependency call.(source)

[...] Application Insights also defines the extension for the correlation HTTP protocol. It uses Request-Context name-value pairs to propagate the collection of properties used by the immediate caller or callee. The Application Insights SDK uses this header to set the dependency.target and request.source fields. (source)

并非所有请求遥测都设置了源属性,可能是因为它们是操作的入口点,因此没有来源。在根请求发起的操作期间发出的 Http 请求设置其源属性。

关于azure - 如何在 Application Insights 中设置请求遥测中的源列值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73617536/

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