Skip to content

Commit

Permalink
chore: add e2e and docs for python musl
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyamochalov committed Nov 7, 2023
1 parent 9c5ce1e commit f36f69b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,13 @@ instrumentation.opentelemetry.io/inject-nodejs: "true"
```

Python:
Python auto-instrumentation also honors an annotation that will be used to set Python runtime C library implementation.
Currently, two C library implementations are supported: `linux-x64` and `linux-musl-x64`.
By default `linux-x64` is used.
```bash
instrumentation.opentelemetry.io/inject-python: "true"
instrumentation.opentelemetry.io/inject-: "true"
instrumentation.opentelemetry.io/otel-python-auto-runtime: "linux-x64" # for Linux glibc based images, this is default value and can be omitted
instrumentation.opentelemetry.io/otel-python-auto-runtime: "linux-musl-x64" # for Linux musl based images
```

.NET:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
annotations:
sidecar.opentelemetry.io/inject: "true"
instrumentation.opentelemetry.io/inject-python: "true"
instrumentation.opentelemetry.io/otel-python-auto-runtime: "linux-musl-x64"
labels:
app: my-pod-with-sidecar
spec:
Expand All @@ -17,7 +18,7 @@ spec:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://localhost:4318
- name: PYTHONPATH
value: "/otel-auto-instrumentation-python/opentelemetry/instrumentation/auto_instrumentation:/otel-auto-instrumentation-python"
value: "/otel-auto-instrumentation-python/linux-musl-x64/opentelemetry/instrumentation/auto_instrumentation:/otel-auto-instrumentation-python"
- name: OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
value: http/protobuf
- name: OTEL_METRICS_EXPORTER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
annotations:
sidecar.opentelemetry.io/inject: "true"
instrumentation.opentelemetry.io/inject-python: "true"
instrumentation.opentelemetry.io/otel-python-auto-runtime: "linux-musl-x64"
spec:
securityContext:
runAsUser: 1000
Expand Down

0 comments on commit f36f69b

Please sign in to comment.