Update: The custom runtime code was created from an older version of Bot Composer, so that's why even though I was using Bot Composer 1.4.1, it wasn't working. I created a bot from scratch and it worked.
Bot Composer "emit a telemtry track event" doesn't seem to work
I'm using Bot Composer 1.4.1 with custom runtime code (nodejs) and trying to send a custom event to Application Insights.
The Application Insights is logging the "Activity" events and other events. But not the custom event I created in Bot Composer.
I checked for issues in GitHub, and it seems it was fixed and merged (https://github.com/microsoft/BotFramework-Composer/issues/5808). I checked the Bot Composer source code and indeed for Bot Composer 1.4.1 the code is the same.
Any help would be appreciated, thanks!