# Compare child span between transactions

**URL:** <https://discuss.elastic.co/t/compare-child-span-between-transactions/224592>\
**Category:** APM\
**Tags:** ui\
**Created:** [March 23, 2020, 5:15am UTC](https://discuss.elastic.co/t/compare-child-span-between-transactions/224592 "2020-03-23T05:15:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhagya1218](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Bhagya1218](https://discuss.elastic.co/u/Bhagya1218)\
**Post date:** [March 23, 2020, 5:15am UTC](https://discuss.elastic.co/t/compare-child-span-between-transactions/224592/1 "2020-03-23T05:15:28Z")

</div>

I have added custom span for my application.  
I have same transaction being executed several times which might take different time in each iteration.  
To understand the reason for varying time between transaction, i would like to compare each span between the transaction.  
How can i compare the span between the transactions?

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

---

<div class="post-metadata">

**Author:** ![dgieselaar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dgieselaar/32/46947_2.png) [@dgieselaar](https://discuss.elastic.co/u/dgieselaar)\
**Post date:** [March 27, 2020, 11:08am UTC](https://discuss.elastic.co/t/compare-child-span-between-transactions/224592/2 "2020-03-27T11:08:33Z")

</div>

Hello @Bhagya1218! That is an interesting use case. We have a lot of visualisations for transactions, but maybe less for spans. In this case I think the best solution would be to use another Kibana visualisation tool, like Discover. You can then use the transaction id of "Parent transaction" to display all spans for that trace. If you add `span.duration` as a column, you could compare the duration of the spans per transaction. Of course, you can do a lot more advanced stuff as well, like aggregations if you use one of the other tools like Visualize or Lens.

---

<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:** [April 17, 2020, 7:08am UTC](https://discuss.elastic.co/t/compare-child-span-between-transactions/224592/3 "2020-04-17T07:08:42Z")

</div>

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