Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot created using Composer is not logging the Telemetry track events to the Application insights. #9303

Closed
3 tasks
SandeepBhagoji202 opened this issue Jul 11, 2022 · 9 comments
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Required for internal Azure reporting. Do not delete. Needs-triage A new issue that require triage Type: Bug Something isn't working

Comments

@SandeepBhagoji202
Copy link

I have a Chatbot built using Core Bot with QnA Maker Template from composer. I have added the Telemetry track event actions to log some of the Custom properties. But , I don't see any of those events getting logged to the azure application insights.

Version - v(2.1.2)

Browser

  • Chrome
  • Edge

OS

  • Windows

Steps to reproduce the behavior:

  1. To create a sample Bot with "Core bot with QnA maker" template using Composer.
  2. Add telemetry event action to any of the properties and Load the events to the Azure application insights.

Additional Information:

I have a FAQ Chatbot built using "Empty bot" template and It loads all the telemetry track events to the app Insights. But I don't see the same Behavior in this Chatbot built using "Core bot with QnA Maker" .

@SandeepBhagoji202 SandeepBhagoji202 added Needs-triage A new issue that require triage Type: Bug Something isn't working labels Jul 11, 2022
@breakingram breakingram added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Required for internal Azure reporting. Do not delete. labels Jul 11, 2022
@breakingram breakingram self-assigned this Jul 11, 2022
@breakingram
Copy link

Hi @SandeepBhagoji202, I'm investigating this one.

@SandeepBhagoji202
Copy link
Author

Thanks @ramfattah .

@SandeepBhagoji202
Copy link
Author

Hi @ramfattah , I don't actually think the problem is with Template because I happened to check that the Telemetry track events and all the Pageviews were logging properly in the last month. But as of now , I don't see any telemetry track events or Pageviews getting logged in. I can only see the Parent Dialog getting logged as a single page view. Even most of the custom events are not loaded.

Could you please let me know this.

@breakingram
Copy link

breakingram commented Jul 12, 2022

Hi @SandeepBhagoji202,

Asking clarifying questions:

  1. Did you happen to manually update the adaptive runtime package in Composer?
  2. What version of Microsoft.Bot.Builder.Dialogs.Adaptive.Runtime are you using?
    Example:

@SandeepBhagoji202
Copy link
Author

Yes @ramfattah , I did update the Adaptive runtime package to 4.16.1. Earlier It was 4.15.2 and even with this runtime, I didn't see these pageviews , telemetry track events and some of the custom events logging. So I updated the runtime version to 4.16.1 to see if they might log.

@breakingram
Copy link

breakingram commented Jul 14, 2022

Hi @SandeepBhagoji202, thanks for the update.

Is telemetry not being logged in specific area in the dialog? Or is it not working at all?
I will attempt to reproduce this issue today using Core bot with QnA maker template and report back. Thanks.

@breakingram
Copy link

breakingram commented Jul 15, 2022

Hi @SandeepBhagoji202,

I was able to reproduce this issue.

Ran the following tests in Greeting trigger:

  1. Add telemetry track event outside of foreach loop
    • Works in application insights
  2. Add telemetry track event inside foreach loop
    • Doesn't work in application insights

Example, Composer set up:
image

Custom Telemetry Track event is working fine outside of foreach loop, except if inside the loop
image

@breakingram
Copy link

This issue is related to microsoft/botbuilder-dotnet#6367

After upgrading Composer's Bot.Builder.Dialogs.Adaptive.Runtime to any version greater than 4.15.0, telemetry does not seem to work inside for each loop and child dialogs.

There is pull-request for this issue that was merged jun, 30, 2022 (14 days as of now):
microsoft/botbuilder-dotnet#6391

@msomanathan
Copy link

This issue will be fixed in the upcoming release as part of the PR #6391.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-reported Required for internal Azure reporting. Do not delete. Needs-triage A new issue that require triage Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants