# Data Pipeline - Sub traces

**URL:** <https://discuss.elastic.co/t/data-pipeline-sub-traces/277882>\
**Category:** APM\
**Tags:** python\
**Created:** [July 5, 2021, 9:30pm UTC](https://discuss.elastic.co/t/data-pipeline-sub-traces/277882 "2021-07-05T21:30:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Koby\_Bass](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/koby_bass/32/90553_2.png) [@Koby\_Bass](https://discuss.elastic.co/u/Koby_Bass)\
**Post date:** [July 5, 2021, 9:30pm UTC](https://discuss.elastic.co/t/data-pipeline-sub-traces/277882/1 "2021-07-05T21:30:42Z")

</div>

Hey!

We are integrating elastic APM in our data pipeline, using the latest python APM client.  
There are several components that analyze an item one after another.

Each component (microservice) receives traceparent and tracestate information from its parents, and begins a transaction.

Currently, we can only see **one** trace in the system, which is the first component in the pipeline.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a5c869ecbf784a7b71ff72760584b9e1f9f3bee.png)

Inside the trace, we can see the sub components operations, but there are no statistics available about them.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b9c985298177a2fd88aea533a5259df95d5b33bf.png)

We would like to receive better statistics on the total time of the trace, including all child transactions

Are there ways to achieve this?

Thanks!

---

<div class="post-metadata">

**Author:** ![Alex.Fedotyev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex.fedotyev/32/66475_2.png) [@Alex.Fedotyev](https://discuss.elastic.co/u/Alex.Fedotyev)\
**Post date:** [July 6, 2021, 7:15pm UTC](https://discuss.elastic.co/t/data-pipeline-sub-traces/277882/2 "2021-07-06T19:15:37Z")

</div>

Hi @Koby_Bass !  
Could you add more details to your question please?  
I want to make sure I understand what you mean by those statistics.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Koby\_Bass](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/koby_bass/32/90553_2.png) [@Koby\_Bass](https://discuss.elastic.co/u/Koby_Bass)\
**Post date:** [July 6, 2021, 7:28pm UTC](https://discuss.elastic.co/t/data-pipeline-sub-traces/277882/3 "2021-07-06T19:28:39Z")

</div>

We would like to see:  
What's the latency between the start of service\_one until the end of service\_three?  
What's the throughput of the entire system, starting at service\_one to service\_three?

Ideally, instead of seeing a single trace in the trace screen, I would like to see 4:  
one for each service separately - service\_one, two and three  
one for the system as a whole

Does that help?

---

<div class="post-metadata">

**Author:** ![Alex.Fedotyev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex.fedotyev/32/66475_2.png) [@Alex.Fedotyev](https://discuss.elastic.co/u/Alex.Fedotyev)\
**Post date:** [July 13, 2021, 1:37am UTC](https://discuss.elastic.co/t/data-pipeline-sub-traces/277882/4 "2021-07-13T01:37:00Z")

</div>

Got it.  
Normally we would show exactly that WHEN you have an overlapping parent transaction, like in the example below.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/a/eadd1e809bc99f2d3a8bd0e764d97ee26c9f57ad.png)

How do services call each other?  
Is there a parent pipeline orchestration which could be instrumented end-to-end?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 2, 2021, 9:37pm UTC](https://discuss.elastic.co/t/data-pipeline-sub-traces/277882/5 "2021-08-02T21:37:33Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
