Replies: 2 comments 2 replies
-
Hello @juliaabrz! I'm here to help you with any questions or issues you have. Let's tackle this one together. No, it is not always true that the duration of the child spans is contained within a parent span. There are cases where the child span takes longer than the parent span. For example, in Jaeger, there is a test case that demonstrates a scenario where a single child span is longer than its parent span: it('span with single child span longer than its parent', () => {
const [serviceOne] = getColumnValues(
'Service Name',
transformedtraceWithSingleChildLongerThanParentAndStartsAfterParent
);
expect(serviceOne.selfTotal).toBe(0.04);
}); This shows that the parent does not need to wait for the child to be finished in order to be complete [1]. |
Beta Was this translation helpful? Give feedback.
-
@juliaabrz note that Jaeger UI already shows flamegraphs |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm creating a flamegraph tool for traces from Jaeger and was wondering about the timing of spans. Is it always true that the duration of the children span is always contained within a parent span, or are there cases where the child takes longer than the parent did (and thus the parent does not need to wait for the child to be finished in order to be complete)? I appreciate the help explaining this concept to me.
Beta Was this translation helpful? Give feedback.
All reactions