Skip to content

Commit 7910f9d

Browse files
authored
feat: add variable for SAMPLED_DEFAULT_RATE (#1634)
1 parent 5c55968 commit 7910f9d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

charts/sentry/templates/sentry/_helper-sentry.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ sentry.conf.py: |-
161161

162162
SENTRY_OPTIONS['system.secret-key'] = secret_key
163163

164+
# Set default for SAMPLED_DEFAULT_RATE:
165+
SAMPLED_DEFAULT_RATE = {{ .Values.global.sampledDefaultRate | default 1.0 }}
166+
164167
# Instruct Sentry that this install intends to be run by a single organization
165168
# and thus various UI optimizations should be enabled.
166169
SENTRY_SINGLE_ORGANIZATION = {{ if .Values.sentry.singleOrganization }}True{{ else }}False{{ end }}

charts/sentry/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ prefix:
44
ipv6: false
55

66
global:
7+
8+
# Set SAMPLED_DEFAULT_RATE parameter for all projects
9+
# sampledDefaultRate: 1.0
10+
711
nodeSelector: {}
812
tolerations: []
913
sidecars: []

0 commit comments

Comments
 (0)