-
Notifications
You must be signed in to change notification settings - Fork 528
VA/Skill App Insights Instrumentation Key not loaded #3365
Comments
Actually, I see the logs when I add this back:
So I'm not sure if this is still an issue, but the key isn't getting loaded into Thanks! |
Hmmm.. Actually AppInsights in BotSettingsBase is not used. The telemetry is configured through And this uses the
@lzc850612 should we rename or remove field AppInsights in BotSettingsBase to reduce confusion? |
Update! My issue also had to do with the fact that I'm replacing variables in my It seems like The fix I found was to explicitly set it by having this in
And this in
|
Hmm.. key vault is not supported yet. They are proposing a pr now: microsoft/ApplicationInsights-dotnet#1850 |
configuration from any source (keyvault etc) is supported even today. You just need to call AddApplicationInsights(configuration), where the passed configuration should contain the ikey. it can be bound to load from keyvault, or anything else. The proposed PR is to make addapplicationinsights() take the user iconfiguration by default. |
What project is affected?
Virtual Assistant and Skill
What language is this in?
C#
What happens?
I haven't seen telemetry coming into App Insights for my VA and Skills.
I saw that this part of
appsettings.json
:Needed to change to this in order to be loaded into
BotSettingsBase.cs
inStartup.cs
But even with that change, I'm not seeing the logs.
I think the problem could be that the
IBotTelemetryClient telemetryClient
in all of the dialogs has an empty string for theInstrumentationKey
, but I don't see a way to manually set theInstrumentationKey
for this.What are the steps to reproduce this issue?
I have a VA and Skills running with v4.7.2
I made the above change to
appsettings.json
This is what it looks like in the
Startup.cs
:Set a breakpoint in the
MainDialog
constructor whereTelemetryClient = telemetryClient;
and you'll seeTelemetryClient.InstrumentationKey == ""
What were you expecting to happen?
Expected to see events in AppInsights like "WaterfallStep," etc
Can you share any logs, error output, etc.?
Any screenshots or additional context?
The text was updated successfully, but these errors were encountered: