Share the same span among multiple traces

12 views
Skip to first unread message

Osvaldo Pina

unread,
Aug 18, 2020, 10:31:16 AM8/18/20
to OpenTracing
Hi,
I have a microservices solution based on Apache Kafka. Each message carries its own trace. But in one service we do some pre-processing in a set of messages. How do I describe that? I was thinking about creating a span for this common processing and clone it in each message trace. What do you guys think?

Thanks!

Yuri Shkuro

unread,
Aug 18, 2020, 11:48:51 AM8/18/20
to OpenTracing
Most tracing system will not allow sharing the same span across traces because trace ID is part of span identity. What we did instead in similar situations of coalescing workflows is to add a new span to every inbound trace and link them to the span in the new outbound (aggregate) trace.

Osvaldo Pina

unread,
Aug 18, 2020, 12:56:59 PM8/18/20
to OpenTracing
  Thanks a lot!
Reply all
Reply to author
Forward
0 new messages