Skip to content

Commit 62155dd

Browse files
Anusha NarapureddyAnusha Narapureddy
authored andcommitted
head sampling auto instrumentation CR update
1 parent 14bd1ca commit 62155dd

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: opentelemetry.io/v1alpha1
2+
kind: Instrumentation
3+
metadata:
4+
name: my-instrumentation
5+
namespace: tutorial-application
6+
spec:
7+
exporter:
8+
endpoint: http://otel-collector.observability-backend.svc.cluster.local:4317
9+
propagators:
10+
- tracecontext
11+
- baggage
12+
- b3
13+
sampler:
14+
type: parentbased_traceidratio
15+
argument: "0.5"
16+
resource:
17+
addK8sUIDAttributes: false
18+
python:
19+
env:
20+
# Required if endpoint is set to 4317.
21+
# Python autoinstrumentation uses http/proto by default
22+
# so data must be sent to 4318 instead of 4317.
23+
- name: OTEL_EXPORTER_OTLP_ENDPOINT
24+
value: http://otel-collector.observability-backend.svc.cluster.local:4318
25+
java:
26+
env:
27+
- name: OTEL_LOGS_EXPORTER
28+
value: otlp

0 commit comments

Comments
 (0)