Closed garypretty closed 5 years ago
@munozemilio, please take a look of this issue. Thanks.
Hi @munozemilio, please update the issue, thanks.
Hi @hcyang, Ill take a look on Monday and asses and ETA for the fix
Hi @munozemilio, just a reminder that it has been 3 days without labelling it "customer-replied-to."
Since there will be some work around the initializers during this release this should be part of that.
Tracking PR #2580 which should fix this issue.
Version
4.5.1
Describe the bug
The TelemetryBotIdInitializer (https://github.com/microsoft/botbuilder-dotnet/blob/7f98f5a2c2cbd17010d71181a39ae3dd7378fb0d/libraries/integration/Microsoft.Bot.Builder.Integration.ApplicationInsights.WebApi/TelemetryBotIdInitializer.cs) class sets various properties for logging in Application Insights and uses the incoming http request body to define the values, such as conversation Id and user Id.
The problem here is that the initializer is expecting the incoming request JSON to be an Bot Framework Activity, but this will fail for other custom channel adapters, such as WebEx, Twilio or community adapters such as Google / Alexa. This leaves certain key values in the telemetry blank, including activity type and conversation ID.
The crude way I have gotten around this recently when I have been using Google / Alexa adapters along with a traditional Bot Framework adapter is looking for properties on the incoming body and deciding how to parse the request and where to get my conversation / user IDs from (see sample below from my current workaround - but any solution needs to be scalable for multiple existing adapters and capable of being extended for new adapters as they are added, so I am not suggesting this is the route the go down).
This is potentially related to the issue raised by @lauren-mills #2474, which shows the same symptoms.
@darrenj This is the issue I mentioned a few days ago.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Properties including conversation ID, user ID and Activity Type should be populated correctly.
[bug]