File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/platforms/node/guides/aws-lambda Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,21 @@ exports.handler = Sentry.AWSLambda.wrapHandler(() => {
100
100
// `first` and `second` errors are captured
101
101
```
102
102
103
+ ## Ignore Sentry Errors
104
+ _(New in version 6.18.0)_
105
+
106
+ By default, Sentry fails Lambda invocation if it is unable to send events to Sentry.
107
+ In this case, even if all reported errors were handled and your handler executed successfully, Sentry will fail the whole Lambda invocation.
108
+
109
+ The `ignoreSentryErrors` (default: `false`) option ignores all the errors raised by Sentry
110
+
111
+ ```javascript { tabTitle :ignoreSentryErrors }
112
+ exports.handler = Sentry.AWSLambda.wrapHandler(yourHandler, {
113
+ // Ignore any errors raised by the Sentry SDK on attempts to send events to Sentry
114
+ ignoreSentryErrors : true ,
115
+ } );
116
+ ```
117
+
103
118
## Behavior
104
119
105
120
With the AWS Lambda integration enabled, the Node SDK will:
You can’t perform that action at this time.
0 commit comments