Skip to content

AWS Lambda Python 3.9 support #1170

Description

@razumeiko

Environment

AWS Lambda with Python 3.9 runtime.
Sentry sdk version sentry-sdk==1.3.1

Steps to Reproduce

  1. Change lambda runtime to Python 3.9
  2. Raise exception

Expected Result

Error should appear in the sentry dashboard.

Actual Result

Nothing happens.

I found that in Python 3.9 runtime, AWS has changed bootstrap location, so return sys.modules["__main__"].bootstrap this is not working anymore.
I fixed it with this sys.modules["__main__"].awslambdaricmain.bootstrap

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions