We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efac60a commit 61faadfCopy full SHA for 61faadf
src/server/src/index.ts
@@ -3,14 +3,18 @@ import helmet from 'koa-helmet';
3
import send from 'koa-send';
4
import serve from 'koa-static';
5
import path from 'path';
6
-import { setup } from 'applicationinsights';
+import * as appInsights from 'applicationinsights';
7
8
import { config } from './config';
9
import { logger } from './logging';
10
import { routes } from './routes/index';
11
12
if (config.appInsightsConnectionString) {
13
- setup(config.appInsightsConnectionString).start();
+ appInsights
14
+ .setup(config.appInsightsConnectionString)
15
+ .setAutoCollectConsole(true, true)
16
+ .enableWebInstrumentation(true)
17
+ .start();
18
}
19
20
const app = new Koa();
0 commit comments