# Chart with the time of the whole traces

**URL:** <https://discuss.elastic.co/t/chart-with-the-time-of-the-whole-traces/287803>\
**Category:** APM\
**Tags:** ui\
**Created:** [October 27, 2021, 1:12pm UTC](https://discuss.elastic.co/t/chart-with-the-time-of-the-whole-traces/287803 "2021-10-27T13:12:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![molsza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/molsza/32/112649_2.png) [@molsza](https://discuss.elastic.co/u/molsza)\
**Post date:** [October 27, 2021, 1:12pm UTC](https://discuss.elastic.co/t/chart-with-the-time-of-the-whole-traces/287803/1 "2021-10-27T13:12:14Z")

</div>

Hi,

In APM view I can see the full trace and from the chart I can read the whole time of the trace. Is it possible to create a query to create a chart with multiple traces. Specifically I would like to have traces which has breached some threshold.

I cannot really use the transactions time, because the time which is the most important is between transactions. Exact case is: one service is sending the message to JMS queue another one is supposed to pick it up quickly. Both services are creating transactions. I need to find the time between those transaction. Or generally the time between the start of first transaction in trace and the end of last one.

---

<div class="post-metadata">

**Author:** ![Eyal\_Koren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyal_koren/32/36830_2.png) [@Eyal\_Koren](https://discuss.elastic.co/u/Eyal_Koren)\
**Post date:** [October 27, 2021, 1:41pm UTC](https://discuss.elastic.co/t/chart-with-the-time-of-the-whole-traces/287803/2 "2021-10-27T13:41:07Z")

</div>

While I cannot provide any smart idea for charting exactly what you are looking for, I can propose an alternative - unless you disabled timestamps in your JMS client, all transactions created by message receiver should have a `context.message.age.ms` field, which is essentially the subtraction of message creation timestamp from message receive timestamp (clock skews cannot be considered of course).  
I hope this helps.

---

<div class="post-metadata">

**Author:** ![molsza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/molsza/32/112649_2.png) [@molsza](https://discuss.elastic.co/u/molsza)\
**Post date:** [October 27, 2021, 2:01pm UTC](https://discuss.elastic.co/t/chart-with-the-time-of-the-whole-traces/287803/3 "2021-10-27T14:01:28Z")

</div>

Hi @Eyal_Koren,

this can be used as a partial solution for the main problem we have. Thank you.

But if anything more generic would be possible, I would be glad to hear about it.

---

<div class="post-metadata">

**Author:** ![tstadler](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tstadler](https://discuss.elastic.co/u/tstadler)\
**Post date:** [October 27, 2021, 4:58pm UTC](https://discuss.elastic.co/t/chart-with-the-time-of-the-whole-traces/287803/4 "2021-10-27T16:58:52Z")

</div>

Maybe you can use transform/roll up to calculate the time between transactions. We are using it to calculate the the total time of a trace (from the start of the first transaction until the end of the last transaction).

---

<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:** [November 17, 2021, 12:59pm UTC](https://discuss.elastic.co/t/chart-with-the-time-of-the-whole-traces/287803/5 "2021-11-17T12:59:12Z")

</div>

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