Instrument SSM command run on EC2 with proper X-Ray parent ID of Step Function

0

I have an API Gateway which starts execution of State Machine and it runs command on EC2 through SSM Automation. Everything is X-Ray traced and now I wanna add tracing to some python script run through SSM. Is there any way that I can retrieve point that piece of code to SSM in the graph using parent segment ID or something? I was able to pass trace ID but it uses another client and graph looks as follows: Enter image description here

1 個回答
0

Can you try also set the parent segment id for the segment created in Python code? Pseudo code: child = xray_recorder.begin_segment("python_code",traceid, parent.segment_id)

AWS
已回答 1 個月前

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

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

回答問題指南