You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
@morsh In the code below what's the reasoning for only setting the "autoCollect" params for just the 1st AppInsightsKey?
privatesetupInstrumentation(){if(this.instrumentationKeys&&this.instrumentationKeys.length>0){//we are setting the automatic updates to the first instumentation key.letautoCollectOptions=this.settings&&this.settings.autoLogOptions||{};ApplicationInsights.setup(this.instrumentationKeys[0]).setAutoCollectConsole(autoCollectOptions.autoCollectConsole||false).setAutoCollectExceptions(autoCollectOptions.autoCollectExceptions||false).setAutoCollectRequests(autoCollectOptions.autoCollectRequests||false).setAutoCollectPerformance(autoCollectOptions.autoCollectPerf||false).start();//for all other custom events, traces etc, we are initiazling application insight clients accordignly.letself=this;_.forEach(this.instrumentationKeys,(iKey)=>{letclient=ApplicationInsights.getClient(iKey);self.appInsightsClients.push(client);});}}
The text was updated successfully, but these errors were encountered:
Hi @user1m - I think this was a quick fix since the code was supposed to support multiple application insights accounts, but wasn't really able to support them (although I might be mistaken).
Also, I think that ApplicationInsights.setup can only run once.
@morsh In the code below what's the reasoning for only setting the "autoCollect" params for just the 1st AppInsightsKey?
The text was updated successfully, but these errors were encountered: