Skip to content

Commit

Permalink
limit insights
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Ner committed Aug 11, 2021
1 parent e0bcc1f commit 60ac201
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion main/js/lib/insights.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,19 @@ class Insights {
insights_key: insights_key
};

applicationinsights.setup(insights_key).start();
applicationinsights.setup(insights_key)
.setAutoDependencyCorrelation(false)
.setAutoCollectRequests(true)
.setAutoCollectPerformance(true, false)
.setAutoCollectExceptions(true)
.setAutoCollectDependencies(false)
.setAutoCollectConsole(false)
.setUseDiskRetryCaching(false)
.setSendLiveMetrics(false)
.setDistributedTracingMode(applicationinsights.DistributedTracingModes.AI_AND_W3C)
.setInternalLogging(false, false)
.setAutoCollectHeartbeat(false)
.start();

return this;
}
Expand Down

0 comments on commit 60ac201

Please sign in to comment.