Skip to content

Commit fc72093

Browse files
xrmxopentelemetrybotcartermp
authored
zero-code/python: add django applications notes in operator doc (#5443)
Co-authored-by: opentelemetrybot <[email protected]> Co-authored-by: Phillip Carter <[email protected]>
1 parent 0457368 commit fc72093

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

content/en/docs/zero-code/python/operator.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: Using the OpenTelemetry Operator to Inject Auto-Instrumentation
33
linkTitle: Operator
44
aliases: [/docs/languages/python/automatic/operator]
55
weight: 30
6-
cSpell:ignore: distro grpcio mkdir psutil uninstrumented virtualenv
6+
# prettier-ignore
7+
cSpell:ignore: distro grpcio mkdir myapp psutil PYTHONPATH uninstrumented virtualenv
78
---
89

910
If you run your Python service in Kubernetes, you can take advantage of the
@@ -26,3 +27,13 @@ specific Python version. The
2627
provides images for a single Python version based on the glibc C library. If you
2728
want to use it you might need to build your own image operator Docker image for
2829
Python auto-instrumentation.
30+
31+
#### Django applications
32+
33+
Applications that run from their own executable like Django requires to set in
34+
your deployment file two environment variables:
35+
36+
- `PYTHONPATH`, with the path to the Django application root directory, e.g.
37+
"/app"
38+
- `DJANGO_SETTINGS_MODULE`, with the name of the Django settings module, e.g.
39+
"myapp.settings"

0 commit comments

Comments
 (0)