Skip to content

Commit a051985

Browse files
authored
chore(serverless): Fix incorrect path in Readme (#6212)
This patch fixes an incorrect path for requiring the auto-init script in the `@sentry/serverless` Readme for users who want to set up the layer via the ARN and environment variables. Furthermore, this patch slightly enhances the step to find the correct ARN by linking to our (still kinda broken) ARN dropdown in the docs.
1 parent fd6ae0f commit a051985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/serverless/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Another and much simpler way to integrate Sentry to your AWS Lambda function is
5959
1. Choose Layers -> Add Layer.
6060
2. Specify an ARN: `arn:aws:lambda:us-west-1:TODO:layer:TODO:VERSION`.
6161
3. Go to Environment variables and add:
62-
- `NODE_OPTIONS`: `-r @sentry/serverless/cjs/awslambda-auto`.
62+
- `NODE_OPTIONS`: `-r @sentry/serverless/build/npm/cjs/awslambda-auto`.
6363
- `SENTRY_DSN`: `your dsn`.
6464
- `SENTRY_TRACES_SAMPLE_RATE`: a number between 0 and 1 representing the chance a transaction is sent to Sentry. For more information, see [docs](https://docs.sentry.io/platforms/node/guides/aws-lambda/configuration/options/#tracesSampleRate).
6565

0 commit comments

Comments
 (0)