Skip to content

Commit f36f69b

Browse files
committed
chore: add e2e and docs for python musl
1 parent 9c5ce1e commit f36f69b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,13 @@ instrumentation.opentelemetry.io/inject-nodejs: "true"
250250
```
251251

252252
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.
253256
```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
255260
```
256261

257262
.NET:

tests/e2e-instrumentation/instrumentation-python/01-assert.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
annotations:
55
sidecar.opentelemetry.io/inject: "true"
66
instrumentation.opentelemetry.io/inject-python: "true"
7+
instrumentation.opentelemetry.io/otel-python-auto-runtime: "linux-musl-x64"
78
labels:
89
app: my-pod-with-sidecar
910
spec:
@@ -17,7 +18,7 @@ spec:
1718
- name: OTEL_EXPORTER_OTLP_ENDPOINT
1819
value: http://localhost:4318
1920
- 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"
2122
- name: OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
2223
value: http/protobuf
2324
- name: OTEL_METRICS_EXPORTER

tests/e2e-instrumentation/instrumentation-python/01-install-app.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ spec:
1414
annotations:
1515
sidecar.opentelemetry.io/inject: "true"
1616
instrumentation.opentelemetry.io/inject-python: "true"
17+
instrumentation.opentelemetry.io/otel-python-auto-runtime: "linux-musl-x64"
1718
spec:
1819
securityContext:
1920
runAsUser: 1000

0 commit comments

Comments
 (0)