Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 484 Bytes

File metadata and controls

23 lines (18 loc) · 484 Bytes

Trying our Sentry SDK on AWS Lambda Python

Demonstrate how to get Sentry to work with AWS Lambda

Learnings

  • Lambdas sometimes get killed before Sentry request is made
  • AwsLambdaIntegration adds blocking calls
  • sentry_sdk should be initialized outside the handler
npm install -g serverless
python -m venv venv
source venv/bin/activate #mac, linux
venv/Scripts/activate #windows
npm install

sls deploy

sls deploy -f hello
sls invoke -f hello --log