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
docs(js): Clarify behavior of timeoutWarningLimit in AWS (#14286)
<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->
## DESCRIBE YOUR PR
resolvesgetsentry/sentry-javascript#9810
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [x] None: Not urgent, can wait up to 1 week+
## SLA
- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
added an urgent due date to it.
Thanks in advance for your help!
## PRE-MERGE CHECKLIST
*Make sure you've checked the following before merging your changes:*
- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)
Sentry reports timeout warnings when the Lambda function is within 500ms of its execution time. You can turn off timeout warnings by setting `captureTimeoutWarning` to `false` in the handler options.
23
+
Sentry reports timeout warnings when the Lambda function is within 500ms of the configured Lambda timeout. You can turn off timeout warnings by setting `captureTimeoutWarning` to `false` in the handler options.
24
24
25
25
```javascript {filename:index.js} {2}
26
26
exports.handler=Sentry.wrapHandler(yourHandler, {
27
27
captureTimeoutWarning:false,
28
28
});
29
29
```
30
30
31
-
To change the timeout warning limit, assign a numeric value (in ms) to `timeoutWarningLimit`:
31
+
To change the timeout warning limit, assign a numeric value (in ms) to `timeoutWarningLimit`. This value specifies the time left before the warning is triggered.
32
32
33
33
```javascript {filename:index.js} {2}
34
34
exports.handler=Sentry.wrapHandler(yourHandler, {
35
-
timeoutWarningLimit:700,
35
+
timeoutWarningLimit:700,// Warn when within 700ms of timeout
0 commit comments