1- {{ if .Values.autoinstrumentation.enabled }}
1+ {{- if .Values.autoinstrumentation.enabled }}
22apiVersion : opentelemetry.io/v1alpha1
33kind : Instrumentation
44metadata :
77 exporter :
88 endpoint : http://{{ $.Release.Name }}-{{ .Values.autoinstrumentation.collectorTarget }}-collector.{{ $.Release.Namespace }}:4317
99 propagators :
10- {{ toYaml .Values.autoinstrumentation.propagators | indent 4 }}
11- {{ with .Values.autoinstrumentation.sampler }}
10+ {{- toYaml .Values.autoinstrumentation.propagators | nindent 4 }}
11+ {{- with .Values.autoinstrumentation.sampler }}
1212 sampler :
13- {{ toYaml . | indent 4 }}
14- {{ end }}
15- {{ with .Values.autoinstrumentation.env }}
13+ {{- toYaml . | nindent 4 }}
14+ {{- end }}
15+ {{- with .Values.autoinstrumentation.env }}
1616 env :
17- {{ toYaml . | indent 4 }}
18- {{ end }}
19- {{ with .Values.autoinstrumentation.resource }}
17+ {{- toYaml . | nindent 4 }}
18+ {{- end }}
19+ {{- with .Values.autoinstrumentation.resource }}
2020 resource :
21- {{ toYaml . | indent 4 }}
22- {{ end }}
23- {{- end }}
21+ {{- toYaml . | nindent 4 }}
22+ {{- end }}
23+ {{- range $language, $settings := .Values.autoinstrumentation.languageSettings }}
24+ {{ $language }}:
25+ {{- with $settings.env }}
26+ env :
27+ {{- toYaml . | nindent 6 }}
28+ {{- end }}
29+ {{- if $settings.image }}
30+ image : {{ $settings.image | quote }}
31+ {{- end }}
32+ {{- with $settings.resources }}
33+ resources :
34+ {{- toYaml . | nindent 6 }}
35+ {{- end }}
36+ {{- end }}
37+ {{- end }}
0 commit comments