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 Risposta
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
con risposta un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande