Skip to content

Commit d76b9bd

Browse files
authored
zero-code/python: correct the OTEL_PYTHON_DISABLED_INSTRUMENTATIONS description (open-telemetry#4866)
1 parent 855b7cc commit d76b9bd

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

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

+11-7
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,16 @@ in too much or unwanted data.
165165

166166
You can omit specific packages from instrumentation by using the
167167
`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.
170173

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`
172175
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`.

0 commit comments

Comments
 (0)