Skip to content

ADOT Python layer not able to recognize dependencies added as another lambda layer with path structure python/lib/python3.x/site-packages #1114

@n-thomson

Description

@n-thomson

We are using AWS Distribution of OpenTelemetry (ADOT) Python lambda layer for OpenTelemetry instrumentation. AWS Python Lambda supports both python and python/lib/python3.x/site-packages for layer paths . However, when apps have dependencies packaged as another lambda layer following the path structure python/lib/python3.x/site-packages, ADOT is not able to recognize them, and function is erroring.

Runtime.ImportModuleError: Unable to import module 'otel_wrapper': No module named ….

ADOT layer version used: arn:aws:lambda:us-east-1:901920570463:layer:aws-otel-python-amd64-ver-1-24-0:1

Language: Python

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions