Skip to main content

AWS Lambda: Sentry Integration

Add Sentry As Layer

While you could install Sentry as a dependency in your function, it's better to add it as a layer. This way you can use it in multiple functions without having to install it in each one.

To do this follow the instruction here:

Sentry Docs > AWS Lambda Layer

Note at the bottom the ability to specify the layer using an ARN. For me the ARN is this:

arn:aws:lambda:us-east-1:943013980633:layer:SentryNodeServerlessSDK:167

Install In Lambda Functions

Follow instructions here:

Sentry Docs > AWS Lambda

I prefer not to include the traces option as I haven't worked out a simple way to detect whether the function is running in dev or prod within the lambdas themselves yet.

Comments

Recent Work

Free desktop AI Chat client, designed for developers and businesses. Unlocks advanced model settings only available in the API. Includes quality of life features like custom syntax highlighting.

Learn More

BidBear

bidbear.io

Bidbear is a report automation tool. It downloads Amazon Seller and Advertising reports, daily, to a private database. It then merges and formats the data into beautiful, on demand, exportable performance reports.

Learn More