Commit 72c0372 1 parent 03fdb67 commit 72c0372 Copy full SHA for 72c0372
File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,18 @@ import { appInsightsPlugin } from './appInsightsPlugin.js';
13
13
let client : appInsights . TelemetryClient | undefined ;
14
14
15
15
if ( config . appInsightsConnectionString ) {
16
+ // https://github.com/microsoft/applicationinsights-node.js?tab=readme-ov-file#configuration
16
17
appInsights
17
18
. setup ( config . appInsightsConnectionString )
18
- . setAutoCollectConsole ( true , true )
19
- . setAutoCollectExceptions ( true )
20
19
. 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 )
22
28
. start ( ) ;
23
29
24
30
client = appInsights . defaultClient ;
You can’t perform that action at this time.
0 commit comments