We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14bd1ca commit 62155ddCopy full SHA for 62155dd
1 file changed
app/instrumentation-head-sampling.yaml
@@ -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
27
+ - name: OTEL_LOGS_EXPORTER
28
+ value: otlp
0 commit comments