microsoft / BotFramework-Composer

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

How to overide bot appsetting in web app setting #9701

Closed TonyZhao414 closed 7 months ago

TonyZhao414 commented 7 months ago

Hi, I'm trying to write logs of my bot to app insights, which is deployed to a web app. But unforunately there's only activity log (like connection start, listening to host) in application insights linked to my web app, and I could see nothing in customEvent table. After adding this connectionString setting below in my local appsetting.json file, I was able to commit logs to app insights with my question and answer in local bot. So I'm wondering how could I overide this setting in my web app or anywhere else. Would you please help answer or point out if there's something wrong with my current deployment causing only activity log. I was adding APPLICATIONINSIGHTS_CONNECTION_STRING and APPINSIGHTS_INSTRUMENTATIONKEY in web app setting, but that doesn't seem to work. Also, I tried runtimeSettingstelemetryoptions__connectionString. Thanks.

"runtimeSettings": { "telemetry": { "logActivities": true, "logPersonalInformation": false, "options": { "connectionString": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } } },