Skip to content

Commit efac60a

Browse files
committed
feat: connect to appinsights
1 parent 3fb1088 commit efac60a

File tree

5 files changed

+1563
-93
lines changed

5 files changed

+1563
-93
lines changed

infra/main.bicep

+1
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ resource webServiceContainerApp 'Microsoft.App/containerApps@2024-03-01' = {
152152
{ name: 'APPSETTINGS_BRANCH_NAME', value: branchName }
153153
{ name: 'APPSETTINGS_GIT_SHA', value: gitSha }
154154
{ name: 'APPSETTINGS_BUILT_AT', value: builtAt }
155+
{ name: 'APPLICATIONINSIGHTS_CONNECTION_STRING', value: appInsights.properties.ConnectionString }
155156
]
156157
}
157158
]

src/server/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"watch": "cross-env NODE_ENV=development nodemon --watch src/**/* -e ts,tsx --exec ts-node src/server/server.ts"
1414
},
1515
"dependencies": {
16+
"applicationinsights": "^3.4.0",
1617
"form-data": "^4.0.1",
1718
"koa": "^2.13.4",
1819
"koa-body": "^6.0.0",

0 commit comments

Comments
 (0)