# Filter span documents with transaction.name

**URL:** <https://discuss.elastic.co/t/filter-span-documents-with-transaction-name/181151>\
**Category:** APM\
**Created:** [May 15, 2019, 10:57am UTC](https://discuss.elastic.co/t/filter-span-documents-with-transaction-name/181151 "2019-05-15T10:57:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashank\_Sah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashank_sah/32/46154_2.png) [@Shashank\_Sah](https://discuss.elastic.co/u/Shashank_Sah)\
**Post date:** [May 15, 2019, 10:57am UTC](https://discuss.elastic.co/t/filter-span-documents-with-transaction-name/181151/1 "2019-05-15T10:57:30Z")

</div>

Hi,

I want to create a visualization which provides span details for a given transaction name(as filter). I am not able to achieve this because transaction.name is not present in span document.  
Since transaction.id is part of span document, it makes sense to also have transaction.name there. Is it possible to add this field in span documents?

Thanks,  
Shashank

---

<div class="post-metadata">

**Author:** ![jalvz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jalvz/32/45613_2.png) [@jalvz](https://discuss.elastic.co/u/jalvz)\
**Post date:** [May 20, 2019, 8:29am UTC](https://discuss.elastic.co/t/filter-span-documents-with-transaction-name/181151/2 "2019-05-20T08:29:49Z")

</div>

Hello,

That functionality is provided in the dedicated APM UI, have you found it?  
If so, is there any why that doesn't work for you?

Juan

---

<div class="post-metadata">

**Author:** ![Shashank\_Sah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashank_sah/32/46154_2.png) [@Shashank\_Sah](https://discuss.elastic.co/u/Shashank_Sah)\
**Post date:** [May 21, 2019, 8:51am UTC](https://discuss.elastic.co/t/filter-span-documents-with-transaction-name/181151/3 "2019-05-21T08:51:17Z")

</div>

Thanks Juan for the response. I know about that functionality in the dedicated APM UI. But there are some visualizations which are not present in that dashboard. Couple of visualizations which I need:

1. Show top latency database calls for the selected transaction.
2. Show top latency external calls for the selected transaction.  
Above both options can be achieved for a transaction id but can't be done for a transaction. Is there any visualization mentioned above being build for the dedicated APM dashboard?

Thanks,  
Shashank

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [May 29, 2019, 7:46pm UTC](https://discuss.elastic.co/t/filter-span-documents-with-transaction-name/181151/4 "2019-05-29T19:46:32Z")

</div>

Sorry for the late answer. The problem is that the transaction.name can be changed after some spans are already sent to APM Server. That's why we can't include the transaction.name in spans.

---

<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:** [June 19, 2019, 3:46pm UTC](https://discuss.elastic.co/t/filter-span-documents-with-transaction-name/181151/5 "2019-06-19T15:46:35Z")

</div>

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