BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

Update 21.corebot-app-insights to use ConnectionString

Open tracyboehrer opened this issue 3 years ago • 1 comments

Per Gary:

We have a customer who were experiencing some dropped events from their bot runtime to Application Insights. After investigation and the MS account team engaging with the App Insights, apparently this can happen if you are using the InstrumentationKey and not the Connection String, which the bot runtime currently does.

The new Adaptive Runtime should be updated to use the Connection String and, in fact, it looks like this is required for new Azure regions https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-troubleshoot-no-data

We will need to consider what, if anything we can do for legacy runtime, or what we do if we migrate a runtime that currently has an InstrumentationKey.

Original issue: https://github.com/microsoft/botbuilder-dotnet/issues/5455

tracyboehrer avatar Apr 08 '21 19:04 tracyboehrer

Hi @tracyboehrer, kind of a random question. How would the application know the endpoint of the application insight without the connection string? Am I missing something?

Fl4v avatar Apr 22 '21 15:04 Fl4v