Sentry on AWS

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.

Getting Started is Simple

For your serverless apps on AWS, you can automatically add Sentry error monitoring and tracing 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 into your deployment package using pip:

Bash
pip install --target ./package --upgrade sentry-sdk

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

Python
import sentry_sdk
from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration

sentry_sdk.init(
    dsn="https://<key>@sentry.io/<project>",
    # Add data like request headers and IP for users, if applicable;
    # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
    send_default_pii=True,
    # Set traces_sample_rate to 1.0 to capture 100%
    # of transactions for tracing.
    # We recommend adjusting this value in production.
    traces_sample_rate=1.0,
    integrations=[AwsLambdaIntegration()],
)

def lambda_handler(event, context):
    # ...

Add @sentry/aws-serverless as a dependency:

Bash
npm install --save @sentry/aws-serverless

Then set these environment variables in your Lambda function configuration to load and initialize the SDK automatically:

Bash
NODE_OPTIONS="--import @sentry/aws-serverless/awslambda-auto"
SENTRY_DSN="https://<key>@sentry.io/<project>"
SENTRY_TRACES_SAMPLE_RATE="1.0"

Redeploy your function and you're all set. Prefer not to deploy any Sentry dependencies with your function? Use the Sentry AWS Lambda Layer instead.

More than 200K Organizations Trust Sentry with Their Application Monitoring

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.

"We reduced false alerts by more than 50% by fine tuning the thresholds and defining the criteria that works best for us with Sentry alerts-it's a completely new world for monday.com."

Roni Avidov
Software Engineer; Engineer
monday.com

FAQs

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.

You can get started for free. Pricing depends on the number of monthly events, transactions, and attachments that you send Sentry. For more details, visit our pricing page.

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