X-Ray and S3 notification

0

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.

  1. 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 ?

  2. 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

alain78
已提問 5 年前檢視次數 273 次
2 個答案
0

Hi there,

Thank you four sharing your use case and feedback. The link of S3 notification to Lambda is a popular request and this is already in our roadmap. We cannot provide an ETA but we will try to get this done the soonest we can. Please stay tuned and thank you for your patience.

Regards,
Haotian

AWS
已回答 5 年前
0

Hi Haotian,

Thank you very much for your return on this. That's great for it already being in the roadmap.

Regards,
Alain

alain78
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南