File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
content/en/docs/zero-code/python Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ weight: 10
5
5
aliases :
6
6
- /docs/languages/python/automatic/configuration
7
7
- /docs/languages/python/automatic/agent-config
8
- cSpell:ignore : healthcheck instrumentor myapp pyproject Starlette urllib
8
+ # prettier-ignore
9
+ cSpell:ignore : gevent healthcheck instrumentor monkeypatch myapp pyproject Starlette urllib
9
10
---
10
11
11
12
The agent is highly configurable, either by:
@@ -146,6 +147,9 @@ specific category.
146
147
- ` OTEL_PYTHON_ID_GENERATOR ` : to specify which IDs generator to use for the
147
148
global Tracer Provider
148
149
- ` OTEL_PYTHON_INSTRUMENTATION_SANITIZE_REDIS ` : to enable query sanitization
150
+ - ` OTEL_PYTHON_AUTO_INSTRUMENTATION_EXPERIMENTAL_GEVENT_PATCH ` : set to
151
+ ` patch_all ` to call gevent monkeypatch ` patch_all ` method before initializing
152
+ the SDK
149
153
150
154
Examples:
151
155
@@ -155,6 +159,7 @@ export OTEL_PYTHON_ELASTICSEARCH_NAME_PREFIX=my-custom-prefix
155
159
export OTEL_PYTHON_GRPC_EXCLUDED_SERVICES=" GRPCTestServer,GRPCHealthServer"
156
160
export OTEL_PYTHON_ID_GENERATOR=xray
157
161
export OTEL_PYTHON_INSTRUMENTATION_SANITIZE_REDIS=true
162
+ export OTEL_PYTHON_AUTO_INSTRUMENTATION_EXPERIMENTAL_GEVENT_PATCH=patch_all
158
163
```
159
164
160
165
## Disabling Specific Instrumentations
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ 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 : grpcio myapp psutil PYTHONPATH
6
+ cSpell:ignore : gevent grpcio monkeypatch myapp psutil PYTHONPATH
7
7
---
8
8
9
9
If you run your Python service in Kubernetes, you can take advantage of the
@@ -40,3 +40,10 @@ your deployment file two environment variables:
40
40
"/app"
41
41
- ` DJANGO_SETTINGS_MODULE ` , with the name of the Django settings module, e.g.
42
42
"myapp.settings"
43
+
44
+ #### gevent applications
45
+
46
+ Since the OpenTelemetry Python 1.37.0/0.58b0 release if you set in your
47
+ deployment file the ` OTEL_PYTHON_AUTO_INSTRUMENTATION_EXPERIMENTAL_GEVENT_PATCH `
48
+ environment variable to ` patch_all ` the auto-instrumentation code will call the
49
+ gevent monkeypatch method with the same name before initializing itself.
You can’t perform that action at this time.
0 commit comments