Commit fc72093 1 parent 0457368 commit fc72093 Copy full SHA for fc72093
File tree 1 file changed +12
-1
lines changed
content/en/docs/zero-code/python
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ title: Using the OpenTelemetry Operator to Inject Auto-Instrumentation
3
3
linkTitle : Operator
4
4
aliases : [/docs/languages/python/automatic/operator]
5
5
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
7
8
---
8
9
9
10
If you run your Python service in Kubernetes, you can take advantage of the
@@ -26,3 +27,13 @@ specific Python version. The
26
27
provides images for a single Python version based on the glibc C library. If you
27
28
want to use it you might need to build your own image operator Docker image for
28
29
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"
You can’t perform that action at this time.
0 commit comments