Hello,
I have a pipeline which is as follow:
lambda1 -> S3 -> lambda2
Lambda1 put an object in an S3 bucket and lambda2 is invoked by the S3 notification
X-Ray doesn't make the link between lambda1 and lambda2. I tried to do it programmatically by making lambda1 pass its trace_id and segment id to lambda2 and then in lambda2 call putTraceSegments. Actually it worked but then nothing more is traced from lambda2. I guess it's because the trace_id computed by AWS in lambda2 doesn't match the one used to create the segment in lambda2. However, even if it were working, it's quite a lot of work to make this link.
-
Is there any plan to integrate this kind of scenario in X-Ray ? I saw in this thread https://forums.aws.amazon.com/thread.jspa?threadID=292267&tstart=0 that there is work going on for SNS integration. Would S3 notification be part of it ?
-
In such scenario lambda1 -> S3 -> lambda2
Wouldn't be better if X-Amzn-Trace-Id is forwarded between lambda1 and lambda2? Correlation between components of our pipeline is made difficult , it seems that only custom code would achieve it but I would like to avoid it at maximum.
Thanks in advance