Azure Bot日志记录 [英] Azure Bot logging

查看:96
本文介绍了Azure Bot日志记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Bot配置了Bot,并将其托管在Azure中.我从Bot发送了几个图API请求.我想记录请求,响应和其他相关异常之间的时间间隔.对于Azure托管的Bot,该日志最好保存在哪里?

I have a Bot configured for Teams and hosted in Azure. I have a couple of graph api requests sent from the Bot. I would like to log the time between request, response, and other related exceptions thrown. Where is this log best kept for an Azure hosted Bot?

推荐答案

当您选择集成Application Insights时,可以自动完成此操作.请参阅本指南:

This can be done automatically when you choose to integrate Application Insights. See this guide:

Application Insights可帮助您通过应用程序性能管理(APM)和即时分析获得可行的见解.开箱即用,您将获得丰富的性能监控,强大的警报和易于使用的仪表板,以帮助确保Bot可用并按预期运行.您可以快速查看是否有问题,然后执行根本原因分析以查找并解决问题.

Application Insights helps you get actionable insights through application performance management (APM) and instant analytics. Out of the box you get rich performance monitoring, powerful alerting, and easy-to-consume dashboards to help ensure your Bot is available and performing as you expect. You can quickly see if you have a problem, then perform a root cause analysis to find and fix the issue.

您还可以使用Application Insights跟踪机器人消息分析(

You can also keep track of bot messages analytics using Application Insights (source):

Analytics(分析)是Application Insights的扩展. Application Insights提供服务级别和检测数据,例如流量,延迟和集成. Analytics(分析)提供有关使用者,讯息和频道资料的对话层报表.

Analytics is an extension of Application Insights. Application Insights provides service-level and instrumentation data like traffic, latency, and integrations. Analytics provides conversation-level reporting on user, message, and channel data.

这篇关于Azure Bot日志记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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