-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Lambda timeout warning inaccurate #9810
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
Comments
Hi @thchia thanks for writing in! I'm not too familiar with AWS Lambda so I tried finding out how we calculate this. It seems we take this timeout from the sentry-javascript/packages/serverless/src/awslambda.ts Lines 282 to 284 in a063fbc
So taking your configuration and assuming the To test if this is indeed what's going wrong here, I'd recommend setting the limit to |
Hi @Lms24 thanks for the update. After looking at the code snippet, it indeed seems like the Let me confirm and get back to you. |
@thchia you beat me to the answer 😅 I discussed this with team members and we came to the conclusion that the intention behind the And yes, we need to point this out more clearly in the documentation - you're absolutely right. Will follow up soon. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/serverless
SDK Version
7.86.0
Framework Version
Node 16
Link to Sentry event
https://chocolate-pte-ltd.sentry.io/issues/4717944733/?alert_rule_id=14826786&alert_type=issue&environment=production¬ification_uuid=2ae1d5f6-f15f-4b59-b1c6-33aee81f6f27&project=4506177582137344&referrer=slack
SDK Setup
Initialisation:
Handler Instrumentation:
Steps to Reproduce
The lambda in the linked event has a timeout of 1 minute. We configure the timeout warning to occur at 80% (48 seconds). The lambda in the linked event ran for 20s and we received the timeout warning.
Expected Result
No warning at 20s runtime
Actual Result
Please see linked event
The text was updated successfully, but these errors were encountered: