AWS Lambda Layer (Python)
You can also install Sentry using a Lambda Layer instead of installing sentry_sdk
with pip
. Import Sentry as usual:
Copied
import sentry_sdk
Then add the Sentry Layer by navigating to your Lambda function. Select Layers.
Then Add a Layer.
Specify an ARN tab as illustrated:
Finally, set the region and copy the provided ARN value into the input.
Select Region
- Package:
- pypi:sentry-sdk
- Version:
- 2.12.0
- Repository:
- https://github.com/getsentry/sentry-python