Skip to content

Commit 72c0372

Browse files
committed
feat: loggging tweaks
1 parent 03fdb67 commit 72c0372

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/server/src/index.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ import { appInsightsPlugin } from './appInsightsPlugin.js';
1313
let client: appInsights.TelemetryClient | undefined;
1414

1515
if (config.appInsightsConnectionString) {
16+
// https://github.com/microsoft/applicationinsights-node.js?tab=readme-ov-file#configuration
1617
appInsights
1718
.setup(config.appInsightsConnectionString)
18-
.setAutoCollectConsole(true, true)
19-
.setAutoCollectExceptions(true)
2019
.setAutoCollectRequests(true)
21-
// .enableWebInstrumentation(true) // not being used on the client yet
20+
.setAutoCollectPerformance(true, true)
21+
.setAutoCollectExceptions(true)
22+
.setAutoCollectDependencies(true)
23+
.setAutoCollectConsole(true, true) // this will enable console logging
24+
.setAutoCollectPreAggregatedMetrics(true)
25+
.setSendLiveMetrics(false)
26+
.setInternalLogging(false, true)
27+
.enableWebInstrumentation(false)
2228
.start();
2329

2430
client = appInsights.defaultClient;

0 commit comments

Comments
 (0)