microsoft / BotFramework-Composer

Dialog creation and management for Microsoft Bot Framework Applications
https://docs.microsoft.com/en-us/composer/
MIT License
869 stars 372 forks source link

Not able to capture Composer telemetry with Application Insights #9555

Closed mansirusiaofc closed 1 year ago

mansirusiaofc commented 1 year ago

When I enable the application insight with Bot Composer and set log personal information and logActivities to true, I can see in Application Insight log Custom Events...there is only activity data no "BotMessageReceived","BotMessageSend","QNA" or "LUIS" also inside custom dimension, "additional properties" and "answers" are not available, I'm not able to collect luis or qna data as in the document: https://learn.microsoft.com/en-us/composer/how-to-capture-telemetry?tabs=v2x

How can I enable LUIS Results and QnA Maker result in the telemetry data?

anishprasad01 commented 1 year ago

Hi @mansirusiaofc,

I am unable to reproduce this. I deployed a Composer bot with Application Insights to Azure and was able to see items such as BotMessageReceived.

When you configured Application Insights in Composer, did you make sure to add your Connection String, as shown in the below screenshot? I do not believe that Composer will auto-fill this field for you.

image
anishprasad01 commented 1 year ago

Closing this issue due to inactivity.

mansirusiaofc commented 1 year ago

We have already tried this but still answers are not coming.

Capturetelem

anishprasad01 commented 1 year ago

You don't need to provide a separate instrumentation key. It's all part of the connection string as provided in the Azure portal.

mansirusiaofc commented 1 year ago

We are still not getting the result, is there any other configuration we need to change?

anishprasad01 commented 1 year ago

Have you modified the App Insights settings, and is the bot itself deployed?

mansirusiaofc commented 1 year ago

Yes, the bot is deployed, and can you please clarify what modification does App Insights needs we are following this documentation https://learn.microsoft.com/en-us/composer/how-to-capture-telemetry?tabs=v2x so we are just calling custom events.

anishprasad01 commented 1 year ago

I was simply clarifying whether you made any modifications to App Insights. I followed this exact document and was unable to reproduce your problem.

anishprasad01 commented 1 year ago

Do you have permissions in Azure to log or access the App Insights data? Following the same docs exactly, I cannot reproduce the issue.

arslanafzalch commented 2 weeks ago

For anyone facing this issue telemetry logs or logs to the console are not logging in Application Insights. Go to configuration, and on top switch to "advance settings view" Now find a section named "telemetry". in "connectionString" Add a connection string copy from Application Insights.

Note: Note that only the instrument key puts a complete connection string.