How can I save some custom qna maker data in azure app insights?

我的未来我决定 提交于 2021-01-29 11:40:56

问题


I have set up an Azure Bot with Luis and QnA Maker (in C#, Bot Framework v4). I want to query the App Insights and get information about the questions asked together with their answer. I followed the answers here: How to get the Qna Maker "Q" from Analytics Application Insights?, and I was able to get them, but I need an additional field for storing the user role (it would be perfect if I could store it in the customDimension field).

I have followed the documentation from https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-telemetry?view=azure-bot-service-4.0 and I added the custom field like this:

var telemetryProperties = new Dictionary<string, string>
{
   { "dialogId", myDialogId },
};

var results = await qna.GetAnswersAsync(context, opts, telemetryProperties);

Still, I don't know if the value is saved or where it is saved. I the live metrics I see that the information is sent, but I can't find it anywhere in the Analytics/Logs.

If you need any further information, let me know.

Thank you!


回答1:


As per the communication with op, the telemetry is eventually in the customEvents table of app insights analytics logs. Sometimes it does not exist due to the value is null.



来源:https://stackoverflow.com/questions/56455724/how-can-i-save-some-custom-qna-maker-data-in-azure-app-insights

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!