@@ -1013,6 +1013,14 @@ module avmContainerApp 'br/public:avm/res/app/container-app:0.19.0' = {
10131013 name : 'AZURE_LOGGING_PACKAGES'
10141014 value : ''
10151015 }
1016+ {
1017+ name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
1018+ value : enableMonitoring ? applicationInsights .outputs .connectionString : ''
1019+ }
1020+ {
1021+ name : 'OTEL_SERVICE_NAME'
1022+ value : 'ContentProcessor'
1023+ }
10161024 ]
10171025 }
10181026 ]
@@ -1078,6 +1086,14 @@ module avmContainerApp_API 'br/public:avm/res/app/container-app:0.19.0' = {
10781086 name : 'AZURE_LOGGING_PACKAGES'
10791087 value : ''
10801088 }
1089+ {
1090+ name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
1091+ value : enableMonitoring ? applicationInsights .outputs .connectionString : ''
1092+ }
1093+ {
1094+ name : 'OTEL_SERVICE_NAME'
1095+ value : 'ContentProcessorAPI'
1096+ }
10811097 ]
10821098 probes : [
10831099 // Liveness Probe - Checks if the app is still running
@@ -1293,6 +1309,14 @@ module avmContainerApp_Workflow 'br/public:avm/res/app/container-app:0.19.0' = {
12931309 name : 'AZURE_LOGGING_PACKAGES'
12941310 value : ''
12951311 }
1312+ {
1313+ name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
1314+ value : enableMonitoring ? applicationInsights .outputs .connectionString : ''
1315+ }
1316+ {
1317+ name : 'OTEL_SERVICE_NAME'
1318+ value : 'ContentProcessorWorkflow'
1319+ }
12961320 ]
12971321 }
12981322 ]
@@ -1670,6 +1694,14 @@ module avmContainerApp_update 'br/public:avm/res/app/container-app:0.19.0' = {
16701694 name : 'AZURE_LOGGING_PACKAGES'
16711695 value : ''
16721696 }
1697+ {
1698+ name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
1699+ value : enableMonitoring ? applicationInsights .outputs .connectionString : ''
1700+ }
1701+ {
1702+ name : 'OTEL_SERVICE_NAME'
1703+ value : 'ContentProcessor'
1704+ }
16731705 ]
16741706 }
16751707 ]
@@ -1750,6 +1782,14 @@ module avmContainerApp_API_update 'br/public:avm/res/app/container-app:0.19.0' =
17501782 name : 'AZURE_LOGGING_PACKAGES'
17511783 value : ''
17521784 }
1785+ {
1786+ name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
1787+ value : enableMonitoring ? applicationInsights .outputs .connectionString : ''
1788+ }
1789+ {
1790+ name : 'OTEL_SERVICE_NAME'
1791+ value : 'ContentProcessorAPI'
1792+ }
17531793 ]
17541794 probes : [
17551795 // Liveness Probe - Checks if the app is still running
@@ -1881,6 +1921,14 @@ module avmContainerApp_Workflow_update 'br/public:avm/res/app/container-app:0.19
18811921 name : 'AZURE_LOGGING_PACKAGES'
18821922 value : ''
18831923 }
1924+ {
1925+ name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
1926+ value : enableMonitoring ? applicationInsights .outputs .connectionString : ''
1927+ }
1928+ {
1929+ name : 'OTEL_SERVICE_NAME'
1930+ value : 'ContentProcessorWorkflow'
1931+ }
18841932 ]
18851933 }
18861934 ]
0 commit comments