How to combine multiple traces that get batched together? #2654
Answered
by
dyladan
KyleAMathews
asked this question in
Q&A
-
I have a system that can batch together multiple streams of work. How do I combine each of the N parent traces as the parent of the batch span? |
Beta Was this translation helpful? Give feedback.
Answered by
dyladan
Dec 6, 2021
Replies: 1 comment 1 reply
-
The best way to handle this is probably to use span links. In that case the batch span is its own root (or whatever triggers the batch to run may be a root) and it adds all the spans which added an item to the batch as a link. It depends on your tracing backend though since they don't all support links. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
KyleAMathews
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The best way to handle this is probably to use span links. In that case the batch span is its own root (or whatever triggers the batch to run may be a root) and it adds all the spans which added an item to the batch as a link.
It depends on your tracing backend though since they don't all support links.