I would like to create a single trace such that a trace from a web api request which publishes an SQS message is connected to a trace which is created from a lambda function invocation which is from a trigger on that sqs. For example, client --> webapi --> sqs --> lambda
Is this possible? Any help is appreciated.
I realize that creating trace from client --> webapi is the easy part. I am making the assumption that this is possible, but perhaps it is not.
This is perhaps an advanced use case. Is is possible and necessary for me to manually stitch the segments together somehow within the lambda?
Here is what it looks like w/ contexts separated (sqs message is terminal node)
Currently, xray segments in lambda are immutable and therefore its not possible to connect the different segments together. However, the AWS team is considering this feature as described here https://github.com/aws/aws-xray-sdk-node/issues/208