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
asked 5 years ago267 views
2 Answers
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
answered 5 years ago
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
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions