diff --git a/backend/charts/api/templates/deployment.yaml b/backend/charts/api/templates/deployment.yaml index caa122041b..66912f7c84 100644 --- a/backend/charts/api/templates/deployment.yaml +++ b/backend/charts/api/templates/deployment.yaml @@ -48,6 +48,9 @@ spec: tags.datadoghq.com/service: {{ template "neosync-api.fullname" . }} tags.datadoghq.com/version: {{ .Values.image.tag | default .Chart.AppVersion }} {{- end }} + tags.neosync.dev/env: {{ .Values.nucleusEnv }} + tags.neosync.dev/service: {{ template "neosync-api.fullname" . }} + tags.neosync.dev/version: {{ .Values.image.tag | default .Chart.AppVersion }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: @@ -148,6 +151,15 @@ spec: fieldPath: metadata.labels['tags.datadoghq.com/version'] {{- end }} + - name: OTEL_SERVICE_NAME + valueFrom: + fieldRef: + fieldPath: metadata.labels['tags.neosync.dev/service'] + - name: OTEL_SERVICE_VERSION + valueFrom: + fieldRef: + fieldPath: metadata.labels['tags.neosync.dev/version'] + {{- with .Values.extraEnvVars }} {{- range .}} - name: {{ .name }}