Skip to content

Commit 5549ef3

Browse files
author
Jakub Ner
committed
limit insights
1 parent e0bcc1f commit 5549ef3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

main/js/lib/insights.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,19 @@ class Insights {
4343
insights_key: insights_key
4444
};
4545

46-
applicationinsights.setup(insights_key).start();
46+
applicationinsights.setup(insights_key)
47+
.setAutoDependencyCorrelation(false)
48+
.setAutoCollectRequests(true)
49+
.setAutoCollectPerformance(true, false)
50+
.setAutoCollectExceptions(true)
51+
.setAutoCollectDependencies(false)
52+
.setAutoCollectConsole(false)
53+
.setUseDiskRetryCaching(false)
54+
.setSendLiveMetrics(false)
55+
.setDistributedTracingMode(appInsights.DistributedTracingModes.AI_AND_W3C)
56+
.setInternalLogging(false, false)
57+
.setAutoCollectHeartbeat(false)
58+
.start();
4759

4860
return this;
4961
}

0 commit comments

Comments
 (0)