Sentry makes monitoring your application health on AWS easier. With support for serverless, microservices, and monolith architectures, Sentry helps you connect the dots from the frontend to the backend so you can identify and solve issues holistically–without the back-and-forth.
For your serverless apps on AWS, you can automatically add Sentry error and performance monitoring to your Node or Python Lambda functions without changing your code, making it easier for you to get up and running quickly.
Install our Python SDK using
pip install --upgrade sentry-sdk
Then use the AWS Lambda integration for the Python SDK like this:
import sentry_sdk from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration 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): # ...
View stack traces on issues, user-agent information, and all the metadata around an issue for all the context needed to resolve the issue.
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.
See what happened leading up to the issue. Get function execution details including function metadata, execution time, Amazon Resource Name, and function identity.
Learn from issues and release data to uncover trends and identify opportunities across your entire system .
Sentry uses run-time instrumentation to capture errors. This allows users to get to the root of the problems using stack traces, breadcrumbs, function context and environment context.
CloudWatch/Stackdriver logs and metrics are hard to use to debug issues. The information is limited to some log statements and usually don't have the context needed to debug issues.
Sentry uses run-time instrumentation to get real time visibility into execution environment and report all relevant info to be able to quickly debug issues. For example source code visibility when issues occur.
CloudWatch or Stackdriver log forwarding requires parsing through logs and usually are limited to details that already exist in logs.
Sentry supports distributed tracing in addition to error monitoring for serverless functions.