Implementation Details
How it Works
When Sentry is added to a Lambda function, the following modifications are made to your Lambda functions:
The layer for Sentry is added to your Lambdas. Any existing layers are honored and the Sentry layer is appended to the end.
Sentry adds the following environment variables
NODE_OPTIONS
: This is to preload theawslambda-auto
module which will automatically initialize SentrySENTRY_DSN
: This is set to the DSN of your projectSENTRY_TRACES_SAMPLE_RATE
: This sets the sampling rate for transactions. You can manually edit your environment variables if you want a different sampling rate.
You can edit this page on GitHub.