From 814a1c534b4a1a8201b855f6b1a0d165be05a812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20J=C3=A4derberg?= Date: Tue, 6 May 2025 13:06:28 +0000 Subject: [PATCH] Merged in fix/redis-api-set-sentry-environment-via-bicep (pull request #1981) fix: set sentry environment through bicep deploys * fix: set sentry environment through bicep deploys Approved-by: Anton Gunnarsson --- apps/redis-api/ci/bicep/app/main.bicep | 3 +++ apps/redis-api/ci/bicep/main.bicep | 8 ++++++++ 2 files changed, 11 insertions(+) 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 } }