Skip to content

Commit d3690dc

Browse files
committed
feat: connect to appinsights
1 parent 61faadf commit d3690dc

File tree

3 files changed

+308
-2
lines changed

3 files changed

+308
-2
lines changed

infra/main.bicep

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ resource workspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
4545
resource appInsights 'Microsoft.Insights/components@2020-02-02' = {
4646
name: appInsightsName
4747
location: location
48-
kind: 'other'
48+
kind: 'web'
4949
properties: {
5050
Application_Type: 'web'
5151
Flow_Type: 'Bluefield'
5252
WorkspaceResourceId: workspace.id
53-
RetentionInDays: 90
53+
RetentionInDays: 30
5454
IngestionMode: 'LogAnalytics'
5555
publicNetworkAccessForIngestion: 'Enabled'
5656
publicNetworkAccessForQuery: 'Enabled'

src/server/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"dependencies": {
1616
"applicationinsights": "^3.4.0",
17+
"applicationinsights-native-metrics": "^0.0.11",
1718
"form-data": "^4.0.1",
1819
"koa": "^2.13.4",
1920
"koa-body": "^6.0.0",

0 commit comments

Comments
 (0)