File tree 3 files changed +9
-2
lines changed
tests/e2e-instrumentation/instrumentation-python
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -250,8 +250,13 @@ instrumentation.opentelemetry.io/inject-nodejs: "true"
250
250
```
251
251
252
252
Python:
253
+ Python auto-instrumentation also honors an annotation that will be used to set Python runtime C library implementation.
254
+ Currently, two C library implementations are supported: ` linux-x64 ` and ` linux-musl-x64 ` .
255
+ By default ` linux-x64 ` is used.
253
256
``` bash
254
- instrumentation.opentelemetry.io/inject-python: " true"
257
+ instrumentation.opentelemetry.io/inject-: " true"
258
+ instrumentation.opentelemetry.io/otel-python-auto-runtime: " linux-x64" # for Linux glibc based images, this is default value and can be omitted
259
+ instrumentation.opentelemetry.io/otel-python-auto-runtime: " linux-musl-x64" # for Linux musl based images
255
260
```
256
261
257
262
.NET:
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ metadata:
4
4
annotations :
5
5
sidecar.opentelemetry.io/inject : " true"
6
6
instrumentation.opentelemetry.io/inject-python : " true"
7
+ instrumentation.opentelemetry.io/otel-python-auto-runtime : " linux-musl-x64"
7
8
labels :
8
9
app : my-pod-with-sidecar
9
10
spec :
17
18
- name : OTEL_EXPORTER_OTLP_ENDPOINT
18
19
value : http://localhost:4318
19
20
- name : PYTHONPATH
20
- value : " /otel-auto-instrumentation-python/opentelemetry/instrumentation/auto_instrumentation:/otel-auto-instrumentation-python"
21
+ value : " /otel-auto-instrumentation-python/linux-musl-x64/ opentelemetry/instrumentation/auto_instrumentation:/otel-auto-instrumentation-python"
21
22
- name : OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
22
23
value : http/protobuf
23
24
- name : OTEL_METRICS_EXPORTER
Original file line number Diff line number Diff line change 14
14
annotations :
15
15
sidecar.opentelemetry.io/inject : " true"
16
16
instrumentation.opentelemetry.io/inject-python : " true"
17
+ instrumentation.opentelemetry.io/otel-python-auto-runtime : " linux-musl-x64"
17
18
spec :
18
19
securityContext :
19
20
runAsUser : 1000
You can’t perform that action at this time.
0 commit comments