Commit d76b9bd 1 parent 855b7cc commit d76b9bd Copy full SHA for d76b9bd
File tree 1 file changed +11
-7
lines changed
content/en/docs/zero-code/python
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,16 @@ in too much or unwanted data.
165
165
166
166
You can omit specific packages from instrumentation by using the
167
167
` OTEL_PYTHON_DISABLED_INSTRUMENTATIONS ` environment variable. The environment
168
- variable can be set to a comma-separated list of package names to exclude from
169
- instrumentation.
168
+ variable can be set to a comma-separated list of instrumentations entry point
169
+ names to exclude from instrumentation. Most of the time the entry point name is
170
+ the same as the package name and it is set in the
171
+ ` project.entry-points.opentelemetry_instrumentor ` table in the package
172
+ ` pyproject.toml ` file.
170
173
171
- For example, if your Python program uses the ` redis ` and ` kafka-python `
174
+ For example, if your Python program uses the ` redis ` , ` kafka-python ` and ` grpc `
172
175
packages, by default the agent will use the
173
- ` opentelemetry-instrumentation-redis ` and
174
- ` opentelemetry-instrumentation-kafka-python ` packages to instrument them. To
175
- disable this, you can set
176
- ` OTEL_PYTHON_DISABLED_INSTRUMENTATIONS=redis,kafka-python ` .
176
+ ` opentelemetry-instrumentation-redis ` ,
177
+ ` opentelemetry-instrumentation-kafka-python ` and
178
+ ` opentelemetry-instrumentation-grpc ` packages to instrument them. To disable
179
+ this, you can set
180
+ ` OTEL_PYTHON_DISABLED_INSTRUMENTATIONS=redis,kafka,grpc_client ` .
You can’t perform that action at this time.
0 commit comments