Skip to content

Commit

Permalink
chore: configure sentry sample rate (#297)
Browse files Browse the repository at this point in the history
Signed-off-by: Kathurima Kimathi <kathurimakimathi415@gmail.com>
  • Loading branch information
KathurimaKimathi committed Dec 15, 2023
1 parent 443cb4a commit b797c00
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ env:
MYCAREHUB_CLIENT_SECRET: ${{ secrets.MYCAREHUB_CLIENT_SECRET }}
MYCAREHUB_INTROSPECT_URL: ${{ secrets.MYCAREHUB_INTROSPECT_URL }}
CLINICAL_BUCKET_NAME: ${{ secrets.CLINICAL_BUCKET_NAME }}
SENTRY_TRACE_SAMPLE_RATE: ${{ secrets.SENTRY_TRACE_SAMPLE_RATE }}

jobs:
golangci:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/staging_multitenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ env:
MYCAREHUB_CLIENT_SECRET: ${{ secrets.MYCAREHUB_CLIENT_SECRET }}
MYCAREHUB_INTROSPECT_URL: ${{ secrets.MYCAREHUB_INTROSPECT_URL }}
CLINICAL_BUCKET_NAME: ${{ secrets.CLINICAL_BUCKET_NAME }}
SENTRY_TRACE_SAMPLE_RATE: ${{ secrets.SENTRY_TRACE_SAMPLE_RATE }}

jobs:
deploy_to_multitenant_staging:
Expand Down
3 changes: 3 additions & 0 deletions deploy/charts/clinical/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ spec:
- name: CLINICAL_BUCKET_NAME
value: {{ .Values.app.container.env.clinicalBucketName | quote }}

- name: SENTRY_TRACE_SAMPLE_RATE
value: {{ .Values.app.container.env.defaultSentryTraceSampleRate | quote }}

volumeMounts:
- name: {{ .Values.app.container.env.googleApplicationCredentialsSecret.name }}
mountPath: {{ .Values.app.container.env.googleApplicationCredentialsSecret.mountPath }}
Expand Down
1 change: 1 addition & 0 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ helm upgrade \
--set app.container.env.jwtKey="${JWT_KEY}"\
--set networking.issuer.privateKeySecretRef="letsencrypt-prod"\
--set networking.ingress.host="${APP_DOMAIN}"\
--set app.container.env.defaultSentryTraceSampleRate="${SENTRY_TRACE_SAMPLE_RATE}"\
--wait \
--timeout 300s \
-f ./charts/clinical/values.yaml \
Expand Down

0 comments on commit b797c00

Please sign in to comment.