Skip to content

Update aws serverless require flag #10016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Replace `VERSION` with a specific version number (for example, 28). You can see

Set the following environment variables in AWS:

- Set `NODE_OPTIONS` to `-r @sentry/aws-serverless/dist/awslambda-auto`
- Set `NODE_OPTIONS` to `-r @sentry/aws-serverless/awslambda-auto`
- Set `SENTRY_DSN` to your Sentry's DSN
- Set `SENTRY_TRACES_SAMPLE_RATE` to your preferred [sampling rate](/platforms/python/configuration/sampling/#sampling-transaction-events) for transactions

Expand All @@ -31,7 +31,7 @@ Alternatively, you can also set the environment variables in the Dockerfile:
<SignInNote />

```docker {tabTitle: Dockerfile}
ENV NODE_OPTIONS="-r @sentry/aws-serverless/dist/awslambda-auto"
ENV NODE_OPTIONS="-r @sentry/aws-serverless/awslambda-auto"
ENV SENTRY_DSN="___PUBLIC_DSN___"
ENV SENTRY_TRACES_SAMPLE_RATE="1.0"
```
Expand Down