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
This is a known issue. When a lambda function times out, the function runtime is immediately frozen so that no further operations are possible, thus it’s too late for additional custom subsegments to be exported. However, Lambda is working on an extension to improve this experience.
Is there a particular reason why you want the xray data to be flushed before the lambda is about to time out?
Not sure why this isn't obvious? All code in the lambda, including the xray sdk/client, knows the deadline at which it will become frozen, so it could attempt to flush buffers right before then... e.g. all segments could be written over the socket to the xray daemon or service.
Otherwise I will have created (open) subsegments that will never be seen, in situations precisely when they would help to identify the problem, which is the point of this ticket. btw, we are also using the lambda insights layer.
I have a lambda that I am purposefully stress testing to time out after 20 seconds.
What I want.
What happens:
The text was updated successfully, but these errors were encountered: