appinsights-logger
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -5,3 +5,13 @@ "use strict"; | ||
const clientKey = (process.env.APPINSIGHTS_INSTRUMENTATIONKEY || "fake"); | ||
appInsights.setup(clientKey).start(); | ||
appInsights.setup(clientKey) | ||
.setAutoDependencyCorrelation((process.env.AI_AUTO_DEPENDENCY_CORRELATE === 'false' ? false : true)) | ||
.setAutoCollectRequests(true) | ||
.setAutoCollectPerformance(true, true) | ||
.setAutoCollectExceptions(true) | ||
.setAutoCollectDependencies((process.env.AI_AUTOCOLLECT_DEPENDENCIES === 'false' ? false : true)) | ||
.setAutoCollectConsole(true) | ||
.setUseDiskRetryCaching(true) | ||
.setSendLiveMetrics(false) | ||
.setDistributedTracingMode(appInsights.DistributedTracingModes.AI_AND_W3C) | ||
.start(); | ||
exports.aiClient = appInsights.defaultClient; | ||
@@ -8,0 +18,0 @@ exports.ai = appInsights; // in case you need to override setup() |
{ | ||
"name": "appinsights-logger", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "thin, yet opinionated wrapper for applcation insights", | ||
@@ -5,0 +5,0 @@ "repository": "gopuff/appinsights-logger", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
8306
68
6