c# - Bot Framework 遥测生成的事件未出现在 Application Insights 中

标签 c# azure botframework azure-application-insights

我正在尝试向 Azure 中托管的 Bot Framework 机器人添加额外的遥测数据。

我已经通过 Microsoft 文档添加 telemetry to your bot但是当我在 Application Insights 中查看自定义事件时,没有 events generated by the Bot framework service正在出现,例如。机器人消息已收到。

我已经完成了我能想到的所有调试步骤,包括:

  • 检查了我的代码与文档的比较,startup.cs 中的代码匹配,我也将其添加到对话框中
  • 检查 InstrumentationKey 值
  • 创建新的 Application Insights API key

事件正在添加到 customEvents 中,请参见下文,但不是由机器人框架服务生成的事件。

Custom events query result

任何帮助将不胜感激!提前致谢。

最佳答案

  • 可能想检查并禁用机器人中的应用程序洞察(应用程序服务),这样就不会出现重复,这可能会影响事件馈送 enter image description here

  • 机器人服务可能正在使用专用链接,这就是它无法提供 Application Insights 并发送遥测数据的原因,请尝试删除或批准应用程序洞察的专用链接连接(从专用链接中心/专用链接检查)端点连接)。

enter image description here

有关专用链接故障排除的更多信息:https://learn.microsoft.com/en-us/azure/private-link/troubleshoot-private-link-connectivity

关于c# - Bot Framework 遥测生成的事件未出现在 Application Insights 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65074872/

相关文章:

c# - AutoMapper 使用 EF 映射 ICollection

azure - 将应用程序注册访问权限限制为特定组

c# - 如何解决Azure WebJob中无法获取单例锁的问题?

botframework - 来自网络聊天的未经授权的机器人服务

botframework - 尝试从 Bot Framework 4.6 连接到 Cosmos DB 时出现 404

c# - 我应该使用哪种集合类型以获得最佳性能?

c# - 图像比较和返回百分比

c# - 使用什么架构进行广泛搜索

powershell - 如何从 Azure 资源管理器 Runbook 登录?

javascript - 为什么我得到 "createProperty is not a function"?