-
Notifications
You must be signed in to change notification settings - Fork 143
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
in_segment_async doesn't get/pass the current Lambda segment #349
Comments
Hello! |
I can only suspect that it is because of the either nature of Lambda : first run is a clean state and then it can get reused, or because not all traces are sampled and when they are not - there is no segment ? I have no working example so far. |
Could I spark some interest in this issue ? ^^ |
After looking into this issue further, there may be a few root causes that contribute to the issue you are seeing. As linked in the previous issue (#203), there is a known issue with using There are a few workarounds you can try in this case:
|
Hello,
I am opening this issue on request of @NathanielRN after a discussion with him in #310 .
The problem is that when we have API GW -> Lambda invocation and in the Lambda we use async , then we get 2 separate traces. One from API GW to Lambda and another from
in_segment_async
. To tie them together I have to use the following workaround:But even then most of the times (usually works first time after deployment only) it doesn't work because I get the error:
The text was updated successfully, but these errors were encountered: