diff --git a/README.md b/README.md index 865096dc..527a4e1f 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,10 @@ This project is deployed in accordance to the [DargStack template](https://githu The AI provider's API key for the recommendation engine. + - ### `reccoom_sentry-dsn` + + The Sentry DSN for the AI service. + - ### `sqitch_target` The database change management application's database connection string. diff --git a/src/development/secrets/reccoom/sentry-dsn.secret b/src/development/secrets/reccoom/sentry-dsn.secret new file mode 100644 index 00000000..6075c4fb --- /dev/null +++ b/src/development/secrets/reccoom/sentry-dsn.secret @@ -0,0 +1 @@ +UNSET THIRD PARTY SECRET \ No newline at end of file diff --git a/src/development/secrets/reccoom/sentry-dsn.secret.template b/src/development/secrets/reccoom/sentry-dsn.secret.template new file mode 100644 index 00000000..b0cd0232 --- /dev/null +++ b/src/development/secrets/reccoom/sentry-dsn.secret.template @@ -0,0 +1 @@ +https://@.ingest.de.sentry.io/ \ No newline at end of file diff --git a/src/development/stack.yml b/src/development/stack.yml index 9c45fa21..99ddb8c2 100644 --- a/src/development/stack.yml +++ b/src/development/stack.yml @@ -123,6 +123,9 @@ secrets: reccoom_openai-api-key: # The AI provider's API key for the recommendation engine. file: ./secrets/reccoom/openai-api-key.secret + reccoom_sentry-dsn: + # The Sentry DSN for the AI service. + file: ./secrets/reccoom/sentry-dsn.secret sqitch_target: # The database change management application's database connection string. file: ./secrets/sqitch/target.secret @@ -567,6 +570,8 @@ services: target: /run/environment-variables/MODEL_API_KEY - source: reccoom_openai-api-key target: /run/environment-variables/OPENAI_API_KEY + - source: reccoom_sentry-dsn + target: /run/environment-variables/SENTRY_DSN volumes: - ../../../reccoom/:/srv/app/ #DARGSTACK-REMOVE - ./configurations/postgraphile/jwtES256.key.pub:/run/configurations/jwtES256.key.pub:ro @@ -594,6 +599,8 @@ services: target: /run/environment-variables/POSTGRES_PASSWORD - source: postgres_password target: /run/environment-variables/RECCOOM_POSTGRES_PASSWORD + - source: reccoom_sentry-dsn + target: /run/environment-variables/SENTRY_DSN volumes: - reccoom_fastembed_data:/tmp/fastembed_cache/ - ../../../reccoom/:/srv/app/ #DARGSTACK-REMOVE @@ -613,6 +620,8 @@ services: target: /run/environment-variables/RECCOOM_POSTGRES_USER - source: postgres_password target: /run/environment-variables/RECCOOM_POSTGRES_PASSWORD + - source: reccoom_sentry-dsn + target: /run/environment-variables/SENTRY_DSN volumes: - ../../../reccoom/:/srv/app/ reccoom_postgres: diff --git a/src/production/production.yml b/src/production/production.yml index 67a6cd6a..bae75e8d 100644 --- a/src/production/production.yml +++ b/src/production/production.yml @@ -70,10 +70,16 @@ services: - traefik.http.routers.prometheus_secure.tls.certresolver=default reccoom: deploy: (( prune )) + environment: + SENTRY_TRACES_SAMPLE_RATE: "0.1" image: ghcr.io/maevsi/reccoom:0.18.4 reccoom_consumer: + environment: + SENTRY_TRACES_SAMPLE_RATE: "0.1" image: ghcr.io/maevsi/reccoom:0.18.4 reccoom_migration: + environment: + SENTRY_TRACES_SAMPLE_RATE: "0.1" image: ghcr.io/maevsi/reccoom:0.18.4 volumes: (( prune )) redpanda-console: