Skip to content

Including more instrumentations (python) #1826

Open
@moserke

Description

@moserke

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions