diff --git a/apps/redis-api/ci/bicep/app/main.bicep b/apps/redis-api/ci/bicep/app/main.bicep index 73aa3c364..89d98874b 100644 --- a/apps/redis-api/ci/bicep/app/main.bicep +++ b/apps/redis-api/ci/bicep/app/main.bicep @@ -7,6 +7,8 @@ param containerImageTag string param redisConnection string param primaryApiKey string param secondaryApiKey string + +param sentryEnvironment string param sentryDSN string param sentryEnabled string param sentryTraceSampleRate string @@ -39,6 +41,7 @@ module containerApp 'containerApp.bicep' = { { name: 'REDIS_CONNECTION', value: redisConnection } { name: 'PRIMARY_API_KEY', value: primaryApiKey } { name: 'SECONDARY_API_KEY', value: secondaryApiKey } + { name: 'SENTRY_ENVIRONMENT', value: sentryEnvironment } { name: 'SENTRY_DSN', value: sentryDSN } { name: 'SENTRY_ENABLED', value: sentryEnabled } { name: 'SENTRY_TRACE_SAMPLE_RATE', value: sentryTraceSampleRate } diff --git a/apps/redis-api/ci/bicep/main.bicep b/apps/redis-api/ci/bicep/main.bicep index 0d703dcd2..f9b7e3a1d 100644 --- a/apps/redis-api/ci/bicep/main.bicep +++ b/apps/redis-api/ci/bicep/main.bicep @@ -8,6 +8,10 @@ param containerImageTag string = 'latest' param primaryApiKey string param secondaryApiKey string +param sentryDSN string +param sentryEnabled string +param sentryTraceSampleRate string + @description('The location for the resource group') param location string = 'westeurope' @@ -43,5 +47,9 @@ module containerApp 'app/main.bicep' = { redisConnection: 'default:${redis.outputs.primaryAccessKey}@${redis.outputs.hostname}:6380' primaryApiKey: primaryApiKey secondaryApiKey: secondaryApiKey + sentryEnvironment: environment == 'prod' ? 'production' : 'test' + sentryDSN: sentryDSN + sentryEnabled: sentryEnabled + sentryTraceSampleRate: sentryTraceSampleRate } }