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 réponse
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
répondu il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions