
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@sentry/aws-serverless
Advanced tools
This package is a wrapper around @sentry/node
, with added functionality related to AWS Lambda. All
methods available in @sentry/node
can be imported from @sentry/aws-serverless
.
To use this SDK, call Sentry.init(options)
at the very beginning of your JavaScript file.
import * as Sentry from '@sentry/aws-serverless';
Sentry.init({
dsn: '__DSN__',
// ...
});
// async (recommended)
export const handler = async (event, context) => {
throw new Error('oh, hello there!');
};
// sync
export const handler = (event, context, callback) => {
throw new Error('oh, hello there!');
};
If you also want to trace performance of all the incoming requests and also outgoing AWS service requests, just set the
tracesSampleRate
option.
import * as Sentry from '@sentry/aws-serverless';
Sentry.init({
dsn: '__DSN__',
tracesSampleRate: 1.0,
});
Another much simpler way to integrate Sentry to your AWS Lambda function is to add the official layer.
arn:aws:lambda:us-west-1:943013980633:layer:SentryNodeServerlessSDKv10:19
. Get the latest ARN from the docs.NODE_OPTIONS
: --import @sentry/aws-serverless/awslambda-auto
.SENTRY_DSN
: your dsn
.SENTRY_TRACES_SAMPLE_RATE
: a number between 0 and 1 representing the chance a transaction is sent to Sentry. For
more information, see
docs.FAQs
Official Sentry SDK for AWS Lambda and AWS Serverless Environments
The npm package @sentry/aws-serverless receives a total of 116,883 weekly downloads. As such, @sentry/aws-serverless popularity was classified as popular.
We found that @sentry/aws-serverless demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.