# Show database Query variables

**URL:** <https://discuss.elastic.co/t/show-database-query-variables/250635>\
**Category:** APM\
**Tags:** java\
**Created:** [October 1, 2020, 9:51am UTC](https://discuss.elastic.co/t/show-database-query-variables/250635 "2020-10-01T09:51:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yassine](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@yassine](https://discuss.elastic.co/u/yassine)\
**Post date:** [October 1, 2020, 9:51am UTC](https://discuss.elastic.co/t/show-database-query-variables/250635/1 "2020-10-01T09:51:52Z")

</div>

Hey community,  
Is it possible to get the used value of a DB-Query-Span?  
I see this span in my transactions:  
select CLIENT\_ID from CL\_ClIENT L where CLIENT\_ID\> ?  
Is the Java Agent not capable of capturing such things?  
Apm agent java version 1.18

---

<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 1, 2020, 11:36am UTC](https://discuss.elastic.co/t/show-database-query-variables/250635/2 "2020-10-01T11:36:26Z")

</div>

Thanks for the question!  
We decided not to collect those, but we may rethink that in the future. You can see details in the related [GitHub issue](https://github.com/elastic/apm/issues/220) and upvote it to record your interest.

---

<div class="post-metadata">

**Author:** ![yassine](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@yassine](https://discuss.elastic.co/u/yassine)\
**Post date:** [October 1, 2020, 12:00pm UTC](https://discuss.elastic.co/t/show-database-query-variables/250635/3 "2020-10-01T12:00:01Z")

</div>

thank you for your feedback!

---

<div class="post-metadata">

**Author:** ![vabnix](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vabnix/32/74284_2.png) [@vabnix](https://discuss.elastic.co/u/vabnix)\
**Post date:** [October 20, 2020, 4:48pm UTC](https://discuss.elastic.co/t/show-database-query-variables/250635/4 "2020-10-20T16:48:41Z")

</div>

It will be helpful if we can get the database transaction query to be visible in APM. There are other ways to collect it by running a query plan or see highly utilized query on RDS, however, when you have APM collecting response time, it will be helpful to know which query took a long time to respond

---

<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 10, 2020, 12:48pm UTC](https://discuss.elastic.co/t/show-database-query-variables/250635/5 "2020-11-10T12:48:56Z")

</div>

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