Sentry for Python on AWS Lambda

Using Sentry with AWS Lambda and Python makes debugging as painless as possible, so you can keep everything up and running.

Getting Started is Simple

Install our Python SDK using pip:

Click to Copy
pip install --upgrade sentry-sdk

Then use the AWS Lambda integration for the Python SDK like this:

Click to Copy
import sentry_sdk sentry_sdk.init( dsn="https://<key>@sentry.io/<project>", integrations=[AwsLambdaIntegration()], traces_sample_rate=1.0, # adjust the sample rate in production as needed ) def my_function(event, context): # ...

Check our documentation for the latest instructions.

See all platforms

“By integrating Sentry into our client, the visibility we got into what our users were experiencing allowed us to reduce client-side errors by more than 60%.”

Roni Avidov
Software Engineer at monday.com

More than 130K Organizations Trust Sentry with Their Application Monitoring

Github logo
Atlassian logo
Disney logo
Cloudflare logo
Microsoft logo
Lush logo

Code-Level Visibility

View stack traces on issues, user-agent information, and all the metadata around an issue for all the context needed to resolve the issue.

Quickly Identify Function Latencies

Trace those ten-second page loads to poor-performing API calls and slow database queries. The event detail waterfall visually highlights what calls are giving your customers a poor experience.

Fill in the Gaps

See what happened leading up to the issue. Get function execution details including function metadata, execution time, Amazon Resource Name, and function identity.

Custom Dashboards and Reporting

Learn from issues and release data to uncover trends and identify opportunities across your entire system .

FAQs

Supporting Resources

The Sentry Blog

A better experience for your users. An easier life for your developers.

© 2025 • Sentry is a registered Trademark of Functional Software, Inc.