Creating spans for batch operations with multiple parents

229 views
Skip to first unread message

Krzysiek Gzocha

unread,
May 17, 2019, 4:45:08 AM5/17/19
to OpenTracing
Hello.

I'm currently working on a bigger Go lang based project with OpenTracing and Jaeger as global tracer.
We have a service, which accepts requests from couple of different services and merge them into one big batch which is later on processed.
Requests are coming as AMQP events.

My plan is to create Span with "Follows" option for each of the AMQP event - as each of those events can come from different service.
The problem is that I have to somehow merge those requests (read all the IDs from the inside of 100s of events) and push them all at once to function X.

Do I understand correctly that each span can have only one parent, which makes it impossible to fully trace function X in a way that will include all the parents from all the AMQP events?

Any suggestions? Ideas?

Kind regards,
Krzysiek Gzocha

Gary Brown

unread,
May 17, 2019, 5:00:03 AM5/17/19
to Krzysiek Gzocha, OpenTracing
Hi Krzysiek

As described here [1], a span can have zero or more references to other span contexts - so you can represent the scenario you described.

Regards
Gary


--
You received this message because you are subscribed to the Google Groups "OpenTracing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentracing...@googlegroups.com.
To post to this group, send email to opent...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opentracing/f8dc8a09-f6a1-4518-b2a3-282ef0bf56cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages