Skip to content

Commit

Permalink
fix(helm): add datadog partial tracing (#1984)
Browse files Browse the repository at this point in the history
Ref: SRX-O5SG3B
  • Loading branch information
AminSlk authored Sep 26, 2024
1 parent 81d1e68 commit 151e5a4
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/kuberpult/templates/cd-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ spec:
- name: DD_TRACE_DEBUG
value: "{{ .Values.datadogTracing.debugging }}"
{{- end }}
{{- if .Values.datadogTracing.enabled }}
- name: DD_TRACE_PARTIAL_FLUSH_ENABLED
value: "{{ .Values.datadogTracing.partialFlushEnabled }}"
{{- end }}
{{- if .Values.datadogTracing.enabled }}
- name: DD_TRACE_PARTIAL_FLUSH_MIN_SPANS
value: "{{ .Values.datadogTracing.partialFlushMinSpans }}"
{{- end }}
{{- if .Values.dogstatsdMetrics.enabled }}
- name: KUBERPULT_ENABLE_METRICS
value: "{{ .Values.dogstatsdMetrics.enabled }}"
Expand Down
8 changes: 8 additions & 0 deletions charts/kuberpult/templates/frontend-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ spec:
fieldPath: metadata.labels['tags.datadoghq.com/version']
- name: KUBERPULT_ENABLE_TRACING
value: "{{ .Values.datadogTracing.enabled }}"
{{- end }}
{{- if .Values.datadogTracing.enabled }}
- name: DD_TRACE_PARTIAL_FLUSH_ENABLED
value: "{{ .Values.datadogTracing.partialFlushEnabled }}"
{{- end }}
{{- if .Values.datadogTracing.enabled }}
- name: DD_TRACE_PARTIAL_FLUSH_MIN_SPANS
value: "{{ .Values.datadogTracing.partialFlushMinSpans }}"
{{- end }}
- name: KUBERPULT_DEX_ENABLED
value: "{{ .Values.auth.dexAuth.enabled }}"
Expand Down
8 changes: 8 additions & 0 deletions charts/kuberpult/templates/manifest-repo-export-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ spec:
- name: DD_TRACE_DEBUG
value: "{{ .Values.datadogTracing.debugging }}"
{{- end }}
{{- if .Values.datadogTracing.enabled }}
- name: DD_TRACE_PARTIAL_FLUSH_ENABLED
value: "{{ .Values.datadogTracing.partialFlushEnabled }}"
{{- end }}
{{- if .Values.datadogTracing.enabled }}
- name: DD_TRACE_PARTIAL_FLUSH_MIN_SPANS
value: "{{ .Values.datadogTracing.partialFlushMinSpans }}"
{{- end }}
{{- if .Values.dogstatsdMetrics.enabled }}
- name: KUBERPULT_ENABLE_METRICS
value: "{{ .Values.dogstatsdMetrics.enabled }}"
Expand Down
8 changes: 8 additions & 0 deletions charts/kuberpult/templates/rollout-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ spec:
- name: DD_TRACE_DEBUG
value: "{{ .Values.datadogTracing.debugging }}"
{{- end }}
{{- if .Values.datadogTracing.enabled }}
- name: DD_TRACE_PARTIAL_FLUSH_ENABLED
value: "{{ .Values.datadogTracing.partialFlushEnabled }}"
{{- end }}
{{- if .Values.datadogTracing.enabled }}
- name: DD_TRACE_PARTIAL_FLUSH_MIN_SPANS
value: "{{ .Values.datadogTracing.partialFlushMinSpans }}"
{{- end }}
{{- if .Values.dogstatsdMetrics.enabled }}
- name: KUBERPULT_ENABLE_METRICS
value: "{{ .Values.dogstatsdMetrics.enabled }}"
Expand Down
2 changes: 2 additions & 0 deletions charts/kuberpult/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ datadogTracing:
enabled: false
debugging: false
environment: "shared"
partialFlushEnabled: true
partialFlushMinSpans: 200

datadogProfiling:
# Note that the profiling environment is taken from the field `datadogTracing.environment`
Expand Down

0 comments on commit 151e5a4

Please sign in to comment.