# Does apm-java-agent support java.util.concurrent.Future

**URL:** <https://discuss.elastic.co/t/does-apm-java-agent-support-java-util-concurrent-future/237476>\
**Category:** APM\
**Tags:** java\
**Created:** [June 17, 2020, 1:23pm UTC](https://discuss.elastic.co/t/does-apm-java-agent-support-java-util-concurrent-future/237476 "2020-06-17T13:23:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fenggao11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fenggao11/32/70032_2.png) [@fenggao11](https://discuss.elastic.co/u/fenggao11)\
**Post date:** [June 17, 2020, 1:23pm UTC](https://discuss.elastic.co/t/does-apm-java-agent-support-java-util-concurrent-future/237476/1 "2020-06-17T13:23:02Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** :7.4

**Elasticsearch version** :7.4

**APM Server version** :7.4

**APM Agent language and version** :1.16

**Browser version** :google

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:

**Fresh install or upgraded from other version?**

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

**Steps to reproduce** :  
1.  
2.  
3.

**Errors in browser console (if relevant)**:

**Provide logs and/or server output (if relevant)**:

---

<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:** [June 17, 2020, 2:12pm UTC](https://discuss.elastic.co/t/does-apm-java-agent-support-java-util-concurrent-future/237476/2 "2020-06-17T14:12:29Z")

</div>

Not sure what you mean by supporting Futures - is it the duration of `get` invocations? Then we do not.  
If it is about context propagation when using concurrent frameworks, then we currently support [`ExecutorService`](https://www.elastic.co/guide/en/apm/agent/java/current/supported-technologies-details.html#supported-async-frameworks) and we will soon extend that to supporting [additional frameworks](https://github.com/elastic/apm-agent-java/pull/1206).

---

<div class="post-metadata">

**Author:** ![fenggao11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fenggao11/32/70032_2.png) [@fenggao11](https://discuss.elastic.co/u/fenggao11)\
**Post date:** [June 18, 2020, 1:51am UTC](https://discuss.elastic.co/t/does-apm-java-agent-support-java-util-concurrent-future/237476/3 "2020-06-18T01:51:11Z")

</div>

thank you for your reply. i still  
i use the java-util-concurrent-future to in the project,when i use java agent ,some traces can not show,so t ask the question.  
i see [https://github.com/elastic/apm-agent-java/issues/1151](https://github.com/elastic/apm-agent-java/issues/1151), something can be shown,but not all things

---

<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:** [June 18, 2020, 7:24am UTC](https://discuss.elastic.co/t/does-apm-java-agent-support-java-util-concurrent-future/237476/4 "2020-06-18T07:24:20Z")

</div>

Please try out [this snapshot agent](https://apm-ci.elastic.co/blue/organizations/jenkins/apm-agent-java%2Fapm-agent-java-mbp/detail/PR-1206/16/artifacts). If it doesn't make a difference, you may be using several async frameworks, some of which we support and some we do not.

---

<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:** [July 9, 2020, 3:24am UTC](https://discuss.elastic.co/t/does-apm-java-agent-support-java-util-concurrent-future/237476/5 "2020-07-09T03:24:21Z")

</div>

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