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?