gpt4 book ai didi

azure - App Insights 响应为 "HTTP/1.1 206 Telemetry sampled out."

转载 作者:行者123 更新时间:2023-12-02 07:38:16 27 4
gpt4 key购买 nike

在 Fiddler 中,我可以看到我的异常被发送到 App Insights。 App Insights 响应“HTTP/1.1 206 遥测采样。”

我之前在 App Insights 中没有看到或根本没有看到此错误记录。有人可以帮助我理解为什么我会看到 206 响应吗? App Insights 中是否记录了太多其他异常,因此正在对这一异常进行抽样?

我的 iKey 看起来正确。

重现步骤显式调用 appInsights.trackException。appInsights.trackException(t);

  • 操作系统/浏览器:Google版本 92.0.4515.159(官方版本)(64 位)

Windows 10

  • SDK 版本 [例如22]:ai.0.js

  • 如何初始化 SDK:App Insights 在 aspx 页面中声明内联。

    var appInsights = window.appInsights ||函数 (a) { 函数 b(a) { c[a] = 函数 () { var b = 参数; c.queue.push(function () { c[a].apply(c, b) }) } } var c = { config: a }, d = 文档, e = 窗口; setTimeout(function () { var b = d.createElement("script"); b.src = a.url || "xyz.../ai.0.js"...

预期行为异常应显示在 App Insights 中。

其他上下文App Insights 中未显示异常

我使用的是旧版本的 SDK。但希望有人能解释一下 App Insights 的 206 响应。

HTTP/1.1 206 遥测采样。内容类型:application/json;字符集=utf-8x-ms- session ID:...严格传输安全:max-age=31536000访问控制允许 header :来源、X-Requested-With、内容名称、内容类型、接受、Sdk 上下文访问控制允许来源:*访问控制最大年龄:3600X-内容类型选项:nosniff日期:2021 年 8 月 23 日星期一 13:33:56 GMT内容长度:287

{"itemsReceived":3,"itemsAccepted":0,"errors":[{"index":0,"statusCode":206,"message":"遥测采样。"},{"index":1,"statusCode":206,"message":"遥测采样。"},{"index":2,"statusCode":206,"message":"遥测采样。"}],"appId":“xyz...”}

最佳答案

I do not see this error logged previously

Sampling不是一个错误。在很多场景下它都是默认开启的。对于 javascript,您可以按照 here 的概述配置采样。

您也可能点击 the daily data cap :

When you create an Application Insights resource in the Azure portal, the daily cap is set to 100 GB/day. When you create an Application Insights resource in Visual Studio, the default is small (only 32.3 MB/day).

我怀疑是后者,因为当使用 sdk 打开采样时,您不会看到它穿过电线。请参阅this doc描述如何调整盖子。

关于azure - App Insights 响应为 "HTTP/1.1 206 Telemetry sampled out.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68942624/

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