open-telemetry / open-telemetry/opentelemetry-lambda

Including more instrumentations (python)

Open
#1,826 4 comments 1 reaction 1 assignee View on GitHub

@wpessers is already working on this.

Since Nov 27, 2025.

enhancement python
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.