My goal is to perform tracing of the whole process of my application through several component. I am using GCP and Pub/Sub message queue to communicate information between components (developped in Python).
I am currently trying to keep the same root trace between component A and component B by creating a new span as a child span of my root trace.
Here is a small diagram:
Component A ---> Pub/Sub message ---> component B
(create the root trace) (contain information) (new span for root trace)
I have a given trace_id
and span_id
of my parent that I can transmit through Pub/Sub but I can't figure out how to declare a new span as a child of this last. All I managed to do is to link a new trace to the parent one but it is not the behavior I am looking for.
Has someone already tried to do something like that ?
Regards,