open-telemetry / open-telemetry/opentelemetry-lambda
Including more instrumentations (python)
@wpessers is already working on this.
Since Nov 27, 2025.
- Dominant language
- Go
- Stars
- 432
- Forks
- 246
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 47
Description
There are times when we need to include more instrumentations than is included in the layer. For example if we need to have asyncio and threading these are not in the layer and require us to have to carry a custom build of the layer.
It would be nice if there was a way to have all of the instrumentations included in the layer but only a default set of instrumentations (current list) enabled.
Then allowing for ENV override to enable more libraries. Or enabling all but disable through the normal SDK env var of OTEL_PYTHON_DISABLED_INSTRUMENTATIONS. We actually use this method today to disable instrumentations in our lambdas that don't use certain libraries and so quiets the errors at startup.
Without this, is there a better way to include just the extra libraries we need that doesn't require building the whole layer?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.