# APM transaction didn't consider the delay in jms

**URL:** <https://discuss.elastic.co/t/apm-transaction-didnt-consider-the-delay-in-jms/199751>\
**Category:** APM\
**Tags:** java\
**Created:** [September 17, 2019, 4:13am UTC](https://discuss.elastic.co/t/apm-transaction-didnt-consider-the-delay-in-jms/199751 "2019-09-17T04:13:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gajanan8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gajanan8086/32/50604_2.png) [@gajanan8086](https://discuss.elastic.co/u/gajanan8086)\
**Post date:** [September 17, 2019, 4:13am UTC](https://discuss.elastic.co/t/apm-transaction-didnt-consider-the-delay-in-jms/199751/1 "2019-09-17T04:13:09Z")

</div>

Hi Team,  
I use JMS for inter component communication. Component one published an event and the second component received the same after around 5 seconds could be some issue with our messaging platform. But here APM failed to show the latency in the dashboard.  
Following are the events published.

 ![APM_Log](https://us1.discourse-cdn.com/elastic/original/3X/b/7/b72062f55162582dd618231f0ef561a3e85f7b02.png) ![APM_Kibana](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cf6bd7bcd52612adee0ff8137fce1abd13253543.png)  
Assuming it's the same issue somebody had already raised and now fixed, could you please confirm if it is? and what is the version number that includes this fix.

---

<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:** [September 18, 2019, 6:27am UTC](https://discuss.elastic.co/t/apm-transaction-didnt-consider-the-delay-in-jms/199751/2 "2019-09-18T06:27:44Z")

</div>

Hi Gajanan,

What Kibana version are you using? I believe this is related to some clock-skew-correction code we had fixed in [https://github.com/elastic/kibana/issues/38871](https://github.com/elastic/kibana/issues/38871), so should be presented better in latest versions.

I addition, I am doing some experimentation of enhancing our tracing for the receiver side, so that we can trace not only the message receive action, but also what happens after it. If you can you try out [this experimental snapshot](https://apm-ci.elastic.co/job/apm-agent-java/job/apm-agent-java-mbp/job/PR-816/8/artifact/src/github.com/elastic/apm-agent-java/elastic-apm-agent/target/elastic-apm-agent-1.9.1-SNAPSHOT.jar) and provide feedback, that would be great.

Thanks,  
Eyal.

---

<div class="post-metadata">

**Author:** ![gajanan8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gajanan8086/32/50604_2.png) [@gajanan8086](https://discuss.elastic.co/u/gajanan8086)\
**Post date:** [September 18, 2019, 3:22pm UTC](https://discuss.elastic.co/t/apm-transaction-didnt-consider-the-delay-in-jms/199751/3 "2019-09-18T15:22:32Z")

</div>

Hi Eyal,  
I am using 6.7.2 planning to upgrade to 7+. I could easily tested the snapshot shared to verify latest feature but cant replace directly as now I am using locally built jar for couple of fixes.

One of the main fix I want is already raised here [#749](https://github.com/elastic/apm-agent-java/issues/749)

Could you help getting this [#749](https://github.com/elastic/apm-agent-java/issues/749) prioritize, then it would be easier for me to replace the jar.

I would have rather committed on github but somebody from core team might need to approve the approach.

---

<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:** [September 18, 2019, 3:46pm UTC](https://discuss.elastic.co/t/apm-transaction-didnt-consider-the-delay-in-jms/199751/4 "2019-09-18T15:46:02Z")

</div>

> [@gajanan8086](#):
>
> I would have rather committed on github but somebody from core team might need to approve the approach.

Not a problem- open a pull request and we will review it. Go over [the CONTRIBUTING page](https://github.com/elastic/apm-agent-java/blob/master/CONTRIBUTING.md) for more info about the process.

---

<div class="post-metadata">

**Author:** ![gajanan8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gajanan8086/32/50604_2.png) [@gajanan8086](https://discuss.elastic.co/u/gajanan8086)\
**Post date:** [September 18, 2019, 5:41pm UTC](https://discuss.elastic.co/t/apm-transaction-didnt-consider-the-delay-in-jms/199751/5 "2019-09-18T17:41:41Z")

</div>

Thanks,  
Created the pull request.

---

<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:** [October 16, 2019, 5:41pm UTC](https://discuss.elastic.co/t/apm-transaction-didnt-consider-the-delay-in-jms/199751/6 "2019-10-16T17:41:47Z")

</div>

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