-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When trying to run instrumentation for a python lambda, I get the following error. It implies I need to install the packaging package into my lambda, but why is this not in the otel layer if it is indeed required? What is leveraging this? Or am I missing a configuration? I was following https://opentelemetry.io/docs/faas/lambda-auto-instrument/
Instrumenting of sqlalchemy failed
Traceback (most recent call last):
File "/opt/python/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 87, in _load_instrumentors
distro.load_instrumentor(entry_point, skip_dep_check=True)
File "/opt/python/opentelemetry/instrumentation/distro.py", line 62, in load_instrumentor
instrumentor: BaseInstrumentor = entry_point.load()
^^^^^^^^^^^^^^^^^^
File "/var/task/pkg_resources/__init__.py", line 2470, in load
self.require(*args, **kwargs)
File "/var/task/pkg_resources/__init__.py", line 2493, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/task/pkg_resources/__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'packaging>=21.0' distribution was not found and is required by the application
Failed to auto initialize opentelemetry
Traceback (most recent call last):
File "/opt/python/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 39, in initialize
_load_instrumentors(distro)
File "/opt/python/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 91, in _load_instrumentors
raise exc
File "/opt/python/opentelemetry/instrumentation/auto_instrumentation/_load.py", line 87, in _load_instrumentors
distro.load_instrumentor(entry_point, skip_dep_check=True)
File "/opt/python/opentelemetry/instrumentation/distro.py", line 62, in load_instrumentor
instrumentor: BaseInstrumentor = entry_point.load()
^^^^^^^^^^^^^^^^^^
File "/var/task/pkg_resources/__init__.py", line 2470, in load
self.require(*args, **kwargs)
File "/var/task/pkg_resources/__init__.py", line 2493, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/task/pkg_resources/__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'packaging>=21.0' distribution was not found and is required by the application
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working