Skip to content

Commit

Permalink
[SRE-2066] modify instrumentation resource to create 2 types for rele…
Browse files Browse the repository at this point in the history
…vant app type
  • Loading branch information
12ushan committed Jan 22, 2024
1 parent a29f478 commit f2840f8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/opentelemetry-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: opentelemetry-operator
version: 0.34.22
version: 0.34.23
description: OpenTelemetry Operator Helm chart for Kubernetes
type: application
home: https://opentelemetry.io/
Expand Down
23 changes: 21 additions & 2 deletions charts/opentelemetry-operator/templates/instrumentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,32 @@
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
name: default-instrumentation
name: java-nodejs-instrumentation
labels:
component: opentelemetry-operator
namespace: {{ .Release.Namespace }}
spec:
exporter:
endpoint: {{ .Values.instrumentation.exporter_endpoint }}
endpoint: {{ .Values.instrumentation.exporter_endpoint }}:4317
propagators:
- tracecontext
- baggage
- b3
{{- with .Values.instrumentation.sampler }}
sampler:
{{- toYaml . | nindent 4 }}
{{- end }}
---
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
name: python-go-instrumentation
labels:
component: opentelemetry-operator
namespace: {{ .Release.Namespace }}
spec:
exporter:
endpoint: {{ .Values.instrumentation.exporter_endpoint }}:4318
propagators:
- tracecontext
- baggage
Expand Down

0 comments on commit f2840f8

Please sign in to comment.