Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zero-code/python: add django applications notes in operator doc #5443

Merged
merged 6 commits into from
Oct 22, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion content/en/docs/zero-code/python/operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
linkTitle: Operator
aliases: [/docs/languages/python/automatic/operator]
weight: 30
cSpell:ignore: distro grpcio mkdir psutil uninstrumented virtualenv
cSpell:ignore:
PYTHONPATH distro grpcio mkdir myapp psutil uninstrumented virtualenv

Check warning on line 7 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (PYTHONPATH)

Check warning on line 7 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (grpcio) Suggestions: (Grácio, grpc, graio, greco, gapuio)

Check warning on line 7 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (myapp) Suggestions: (my-app, maypop, mmap, Mmap, map)

Check warning on line 7 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (psutil) Suggestions: (psutils, sutil, sútil, puti, pupil)

Check warning on line 7 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (uninstrumented) Suggestions: (instrumented, uninstructed)

Check warning on line 7 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (virtualenv) Suggestions: (virtuales, virtual, virtuals, virulent, victualed)
xrmx marked this conversation as resolved.
Show resolved Hide resolved
---

If you run your Python service in Kubernetes, you can take advantage of the
Expand All @@ -17,8 +18,8 @@
#### Libraries with binary wheels

Some Python packages we instrument or need in our instrumentation libraries,
might ship with some binary code. This is the case, for example, of `grpcio` and

Check warning on line 21 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (grpcio) Suggestions: (Grácio, grpc, graio, greco, gapuio)
`psutil` (used in `opentelemetry-instrumentation-system-metrics`).

Check warning on line 22 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (psutil) Suggestions: (psutils, sutil, sútil, puti, pupil)

The binary code is tied to a specific C library version (glibc or musl) and to a
specific Python version. The
Expand All @@ -26,3 +27,13 @@
provides images for a single Python version based on the glibc C library. If you
want to use it you might need to build your own image operator Docker image for
Python auto-instrumentation.

#### Django applications

Applications that run from their own executable like Django requires to set in
your deployment file two environment variables:

- `PYTHONPATH`, with the path to the Django application root directory, e.g.

Check warning on line 36 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (PYTHONPATH)
"/app"
- `DJANGO_SETTINGS_MODULE`, with the name of the Django settings module, e.g.
"myapp.settings"

Check warning on line 39 in content/en/docs/zero-code/python/operator.md

View workflow job for this annotation

GitHub Actions / SPELLING check

Unknown word (myapp) Suggestions: (my-app, maypop, mmap, Mmap, map)
Loading