We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a1ffa1 + 132557a commit c7382fcCopy full SHA for c7382fc
lib/module.js
@@ -64,11 +64,14 @@ module.exports = function appInsights (moduleOptions) {
64
logger.info('Server errors will not be logged because no serverConnectionString provided')
65
return
66
}
67
+
68
const appInsightsServer = AppInsights.setup(optionsServer.serverConnectionString)
- const config = { ...AppInsights.defaultClient.config, ...optionsServer.serverConfig }
69
70
- AppInsights.defaultClient.config = config
71
// Initialize AppInsights
+ for (const [key, value] of Object.entries(optionsServer.serverConfig)) {
72
+ AppInsights.defaultClient.config[key] = value
73
+ }
74
75
if (optionsServer.initialize) {
76
appInsightsServer.start()
77
0 commit comments