You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you also want to trace performance of all the incoming requests and also outgoing AWS service requests, just set the
@@ -46,21 +42,21 @@ If you also want to trace performance of all the incoming requests and also outg
46
42
```javascript
47
43
import*asSentryfrom'@sentry/aws-serverless';
48
44
49
-
Sentry.AWSLambda.init({
45
+
Sentry.init({
50
46
dsn:'__DSN__',
51
47
tracesSampleRate:1.0,
52
48
});
53
49
```
54
50
55
-
#### Integrate Sentry using internal extension
51
+
#### Integrate Sentry using the Sentry Lambda layer
56
52
57
-
Another and much simpler way to integrate Sentry to your AWS Lambda function is to add an official layer.
53
+
Another much simpler way to integrate Sentry to your AWS Lambda function is to add the official layer.
58
54
59
55
1. Choose Layers -> Add Layer.
60
-
2. Specify an ARN: `arn:aws:lambda:us-west-1:TODO:layer:TODO:VERSION`.
56
+
2. Specify an ARN: `arn:aws:lambda:us-west-1:943013980633:layer:SentryNodeServerlessSDKv10:19`. Get the latest ARN from the [docs](https://docs.sentry.io/platforms/javascript/guides/aws-lambda/install/layer).
0 commit comments