# Sometimes, span.db.statement is ignored in span detail

**URL:** <https://discuss.elastic.co/t/sometimes-span-db-statement-is-ignored-in-span-detail/372981>\
**Category:** Elastic Search\
**Created:** [January 9, 2025, 9:12am UTC](https://discuss.elastic.co/t/sometimes-span-db-statement-is-ignored-in-span-detail/372981 "2025-01-09T09:12:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![at\_andreas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/at_andreas/32/139915_2.png) [@at\_andreas](https://discuss.elastic.co/u/at_andreas)\
**Post date:** [January 9, 2025, 9:12am UTC](https://discuss.elastic.co/t/sometimes-span-db-statement-is-ignored-in-span-detail/372981/1 "2025-01-09T09:12:29Z")

</div>

Why is the database statement (span.db.statement) sometimes displayed and sometimes not? Neither in the ‘Span details’ nor in custom dashboards. But when i discover the span, i see an \_ignored-Tag and also the db.statement ... so i think it must be configurable, because the data is there.

It does not matter whether the span was slow or fast.  
It would be more interesting to get the queries for the slow spans.

Can this be configured somewhere? How? ☹

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a599e4348d18952105cbd8e7c0ab7ac5de2521da.png)

In the Data view `APM` the field is included:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/a/3a62942188b4a3a74c99f9cb25704a235993e4fa.png)

---

<div class="post-metadata">

**Author:** ![at\_andreas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/at_andreas/32/139915_2.png) [@at\_andreas](https://discuss.elastic.co/u/at_andreas)\
**Post date:** [January 28, 2025, 6:41am UTC](https://discuss.elastic.co/t/sometimes-span-db-statement-is-ignored-in-span-detail/372981/2 "2025-01-28T06:41:38Z")

</div>

Does anyone have any ideas?

---

<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:** [February 25, 2025, 6:41am UTC](https://discuss.elastic.co/t/sometimes-span-db-statement-is-ignored-in-span-detail/372981/3 "2025-02-25T06:41:48Z")

</div>

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