Skip to content

Commit a9b6d1a

Browse files
committed
update sentry env
1 parent 6f08721 commit a9b6d1a

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

charts/agent/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ spec:
231231
value: {{ .Values.env.tracer.otel.insecure_skip_verify | quote }}
232232
- name: CONVOY_SENTRY_DSN
233233
value: {{ .Values.env.tracer.sentry.dsn | quote }}
234+
- name: CONVOY_SENTRY_DEBUG
235+
value: {{ .Values.env.tracer.sentry.debug | quote }}
236+
{{- if .Values.env.tracer.sentry.environment }}
237+
- name: CONVOY_SENTRY_ENVIRONMENT
238+
value: {{ .Values.env.tracer.sentry.environment | quote }}
239+
{{- end }}
234240
{{- end }}
235241

236242
{{- if .Values.env.storage.enabled }}

charts/agent/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ env:
9898
insecure_skip_verify: true
9999
sentry:
100100
dsn: ""
101+
debug: false
102+
environment: ""
101103
pyroscope:
102104
enabled: false
103105
url: ""

charts/server/templates/deployment.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ spec:
9191
- name: HTTP_PROXY
9292
value: {{ .Values.env.proxy | quote }}
9393
- name: CONVOY_ENV
94-
value: {{ .Values.env.environment | quote }}
94+
value: {{ .Values.global.convoy.environment | quote }}
9595
- name: CONVOY_HOST
9696
value: {{ .Values.env.host | quote }}
9797
- name: CONVOY_ROOT_PATH
@@ -240,6 +240,12 @@ spec:
240240
value: {{ .Values.env.tracer.otel.insecure_skip_verify | quote }}
241241
- name: CONVOY_SENTRY_DSN
242242
value: {{ .Values.env.tracer.sentry.dsn | quote }}
243+
- name: CONVOY_SENTRY_DEBUG
244+
value: {{ .Values.env.tracer.sentry.debug | quote }}
245+
{{- if .Values.env.tracer.sentry.environment }}
246+
- name: CONVOY_SENTRY_ENVIRONMENT
247+
value: {{ .Values.global.convoy.environment | quote }}
248+
{{- end }}
243249
{{- end }}
244250

245251
- name: CONVOY_INSTANCE_INGEST_RATE

charts/server/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ global:
1818
portal_realm_enabled: false
1919
sentry_sample_rate: 1.0
2020
read_replica_dsn: ""
21+
environment: ""
2122

2223
externalDatabase:
2324
enabled: false
@@ -94,6 +95,8 @@ env:
9495
insecure_skip_verify: true
9596
sentry:
9697
dsn: ""
98+
debug: false
99+
environment: ""
97100
storage:
98101
enabled: false
99102
type: ""
@@ -187,8 +190,7 @@ podDisruptionBudget: {}
187190
# minAvailable: 1
188191

189192
# Extra environment variables to be set in the server pods
190-
extraEnvs:
191-
[]
193+
extraEnvs: []
192194
# - name: CUSTOM_ENV_VAR
193195
# value: "custom_value"
194196
# - name: SECRET_ENV_VAR

values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ global:
3030
otel_insecure_skip_verify: &otelInsecureSkipVerify true
3131
# -- Sentry DSN
3232
sentry_dsn: &sentryDsn ""
33+
# -- Sentry debug mode
34+
sentry_debug: &sentryDebug false
35+
# -- Sentry environment
36+
sentry_environment: &sentryEnvironment ""
3337
# -- Retention policy duration
3438
retention_policy_duration: &retentionPolicyDuration 720h
3539
# -- Retention policy enabled
@@ -196,6 +200,8 @@ agent:
196200
insecure_skip_verify: *otelInsecureSkipVerify
197201
sentry:
198202
dsn: *sentryDsn
203+
debug: *sentryDebug
204+
environment: *sentryEnvironment
199205
pyroscope:
200206
enabled: false
201207
url: ""
@@ -334,6 +340,8 @@ server:
334340
insecure_skip_verify: *otelInsecureSkipVerify
335341
sentry:
336342
dsn: *sentryDsn
343+
debug: *sentryDebug
344+
environment: *sentryEnvironment
337345
pyroscope:
338346
enabled: false
339347
url: ""

0 commit comments

Comments
 (0)