Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/LocalDevelopmentSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,6 @@ Enable detailed logging by setting these environment variables in your `.env` fi

```bash
APP_LOGGING_LEVEL=DEBUG
APP_LOGGING_ENABLE=True
```

## Related Documentation
Expand Down
48 changes: 48 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,14 @@ module avmContainerApp 'br/public:avm/res/app/container-app:0.19.0' = {
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessor'
}
]
}
]
Expand Down Expand Up @@ -1065,6 +1073,14 @@ module avmContainerApp_API 'br/public:avm/res/app/container-app:0.19.0' = {
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessorAPI'
}
]
probes: [
// Liveness Probe - Checks if the app is still running
Expand Down Expand Up @@ -1270,6 +1286,14 @@ module avmContainerApp_Workflow 'br/public:avm/res/app/container-app:0.19.0' = {
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessorWorkflow'
}
]
}
]
Expand Down Expand Up @@ -1642,6 +1666,14 @@ module avmContainerApp_update 'br/public:avm/res/app/container-app:0.19.0' = {
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessor'
}
]
}
]
Expand Down Expand Up @@ -1717,6 +1749,14 @@ module avmContainerApp_API_update 'br/public:avm/res/app/container-app:0.19.0' =
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessorAPI'
}
]
probes: [
// Liveness Probe - Checks if the app is still running
Expand Down Expand Up @@ -1843,6 +1883,14 @@ module avmContainerApp_Workflow_update 'br/public:avm/res/app/container-app:0.19
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessorWorkflow'
}
]
}
]
Expand Down
67 changes: 64 additions & 3 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.41.2.15936",
"templateHash": "5358772599129171911"
"templateHash": "5718783598601616074"
},
"name": "Content Processing Solution Accelerator",
"description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance."
Expand Down Expand Up @@ -35187,8 +35187,8 @@
"avmContainerApp_API",
"avmContainerApp_Workflow",
"avmManagedIdentity",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
"virtualNetwork"
]
},
Expand Down Expand Up @@ -45022,9 +45022,9 @@
},
"dependsOn": [
"avmAiServices_cu",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
"virtualNetwork"
]
},
Expand Down Expand Up @@ -46521,6 +46521,14 @@
{
"name": "AZURE_LOGGING_PACKAGES",
"value": ""
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "[if(parameters('enableMonitoring'), reference('applicationInsights').outputs.connectionString.value, '')]"
},
{
"name": "OTEL_SERVICE_NAME",
"value": "ContentProcessor"
}
]
}
Expand Down Expand Up @@ -48061,6 +48069,7 @@
}
},
"dependsOn": [
"applicationInsights",
"avmContainerAppEnv",
"avmContainerRegistryReader"
]
Expand Down Expand Up @@ -48133,6 +48142,14 @@
{
"name": "AZURE_LOGGING_PACKAGES",
"value": ""
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "[if(parameters('enableMonitoring'), reference('applicationInsights').outputs.connectionString.value, '')]"
},
{
"name": "OTEL_SERVICE_NAME",
"value": "ContentProcessorAPI"
}
],
"probes": [
Expand Down Expand Up @@ -49734,6 +49751,7 @@
}
},
"dependsOn": [
"applicationInsights",
"avmContainerAppEnv",
"avmContainerRegistryReader"
]
Expand Down Expand Up @@ -51441,6 +51459,14 @@
{
"name": "AZURE_LOGGING_PACKAGES",
"value": ""
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "[if(parameters('enableMonitoring'), reference('applicationInsights').outputs.connectionString.value, '')]"
},
{
"name": "OTEL_SERVICE_NAME",
"value": "ContentProcessorWorkflow"
}
]
}
Expand Down Expand Up @@ -52978,6 +53004,7 @@
}
},
"dependsOn": [
"applicationInsights",
"avmContainerAppEnv",
"avmContainerRegistryReader"
]
Expand Down Expand Up @@ -63656,6 +63683,14 @@
{
"name": "AZURE_LOGGING_PACKAGES",
"value": ""
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "[if(parameters('enableMonitoring'), reference('applicationInsights').outputs.connectionString.value, '')]"
},
{
"name": "OTEL_SERVICE_NAME",
"value": "ContentProcessor"
}
]
}
Expand Down Expand Up @@ -65194,6 +65229,7 @@
}
},
"dependsOn": [
"applicationInsights",
"avmAppConfig",
"avmContainerAppEnv",
"avmContainerRegistryReader",
Expand Down Expand Up @@ -65269,6 +65305,14 @@
{
"name": "AZURE_LOGGING_PACKAGES",
"value": ""
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "[if(parameters('enableMonitoring'), reference('applicationInsights').outputs.connectionString.value, '')]"
},
{
"name": "OTEL_SERVICE_NAME",
"value": "ContentProcessorAPI"
}
],
"probes": [
Expand Down Expand Up @@ -66870,6 +66914,7 @@
}
},
"dependsOn": [
"applicationInsights",
"avmAppConfig",
"avmContainerAppEnv",
"avmContainerRegistryReader",
Expand Down Expand Up @@ -66944,6 +66989,14 @@
{
"name": "AZURE_LOGGING_PACKAGES",
"value": ""
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "[if(parameters('enableMonitoring'), reference('applicationInsights').outputs.connectionString.value, '')]"
},
{
"name": "OTEL_SERVICE_NAME",
"value": "ContentProcessorWorkflow"
}
]
}
Expand Down Expand Up @@ -68481,6 +68534,7 @@
}
},
"dependsOn": [
"applicationInsights",
"avmAppConfig",
"avmContainerAppEnv",
"avmContainerRegistryReader"
Expand Down Expand Up @@ -68558,6 +68612,13 @@
},
"value": "[reference('avmContainerRegistry').outputs.loginServer.value]"
},
"CONTENT_UNDERSTANDING_ACCOUNT_NAME": {
"type": "string",
"metadata": {
"description": "The name of the Content Understanding AI Services account."
},
"value": "[reference('avmAiServices_cu').outputs.name.value]"
},
"AZURE_RESOURCE_GROUP": {
"type": "string",
"metadata": {
Expand Down
48 changes: 48 additions & 0 deletions infra/main_custom.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,14 @@ module avmContainerApp 'br/public:avm/res/app/container-app:0.19.0' = {
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessor'
}
]
}
]
Expand Down Expand Up @@ -1078,6 +1086,14 @@ module avmContainerApp_API 'br/public:avm/res/app/container-app:0.19.0' = {
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessorAPI'
}
]
probes: [
// Liveness Probe - Checks if the app is still running
Expand Down Expand Up @@ -1293,6 +1309,14 @@ module avmContainerApp_Workflow 'br/public:avm/res/app/container-app:0.19.0' = {
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessorWorkflow'
}
]
}
]
Expand Down Expand Up @@ -1670,6 +1694,14 @@ module avmContainerApp_update 'br/public:avm/res/app/container-app:0.19.0' = {
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessor'
}
]
}
]
Expand Down Expand Up @@ -1750,6 +1782,14 @@ module avmContainerApp_API_update 'br/public:avm/res/app/container-app:0.19.0' =
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessorAPI'
}
]
probes: [
// Liveness Probe - Checks if the app is still running
Expand Down Expand Up @@ -1881,6 +1921,14 @@ module avmContainerApp_Workflow_update 'br/public:avm/res/app/container-app:0.19
name: 'AZURE_LOGGING_PACKAGES'
value: ''
}
{
name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
value: enableMonitoring ? applicationInsights.outputs.connectionString : ''
}
{
name: 'OTEL_SERVICE_NAME'
value: 'ContentProcessorWorkflow'
}
]
}
]
Expand Down
3 changes: 2 additions & 1 deletion src/ContentProcessor/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ dependencies = [
"azure-ai-inference==1.0.0b9",
"azure-appconfiguration==1.8.0",
"azure-identity==1.26.0b1",
"azure-monitor-opentelemetry==1.8.7",
"azure-storage-blob==12.29.0b1",
"azure-storage-queue==12.16.0b1",
"certifi==2026.1.4",
"charset-normalizer==3.4.4",
"opentelemetry-api==1.39.1",
"opentelemetry-api==1.40.0",
"pandas==3.0.0",
"pdf2image==1.17.0",
"poppler-utils==0.1.0",
Expand Down
2 changes: 2 additions & 0 deletions src/ContentProcessor/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ azure-ai-inference==1.0.0b9
azure-appconfiguration==1.8.0
azure-core==1.38.0
azure-identity==1.26.0b1
azure-monitor-events-extension==0.1.0
azure-monitor-opentelemetry==1.6.10
azure-storage-blob==12.29.0b1
azure-storage-queue==12.16.0b1
certifi==2026.1.4
Expand Down
Loading
Loading