# DB Query Parameter as Request Attributes

**URL:** <https://community.dynatrace.com/t/db-query-parameter-as-request-attributes/55384>\
**Category:** Open Q&A\
**Tags:** databases, request-attributes\
**Created:** [March 27, 2026, 2:24am UTC](https://community.dynatrace.com/t/db-query-parameter-as-request-attributes/55384 "2026-03-27T02:24:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![izza](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@izza](https://community.dynatrace.com/u/izza)\
**Post date:** [March 27, 2026, 2:24am UTC](https://community.dynatrace.com/t/db-query-parameter-as-request-attributes/55384/1 "2026-03-27T02:24:37Z")

</div>

Hi Dynatrace Community,

I’m trying to create Request Attributes from `db.query.parameters` span attribute, but the values are not being captured. Looking for guidance on the correct attribute key syntax.

**What I have tried so far:**  
Under Settings → Server-side service monitoring → Request Attributes → Data source → Span attribute, I have tried the following attribute key formats, but all return nothing/empty:

- `db.query.parameters[@6]`  
- `db.query.parameters[6]`  
- `db.query.parameters.@6`

Any help or guidance is appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [July 22, 2026, 12:17pm UTC](https://community.dynatrace.com/t/db-query-parameter-as-request-attributes/55384/2 "2026-07-22T12:17:17Z")

</div>

Hi&nbsp;[@izza](https://community.dynatrace.com/user/100496)

According to Dynatrace documentation,&nbsp;db.query.parameters&nbsp;is stored as a&nbsp;key-value map&nbsp;(not a simple array).The correct syntax for accessing span attribute map values in Request Attributes should be:

- db.query.parameters.6&nbsp;— using dot notation with the string index (no brackets, no @)

However, there’s an important caveat:&nbsp;db.query.parameters&nbsp;is classified as a&nbsp;sensitive span field&nbsp;in Dynatrace.

[Sensitive spans fields — Dynatrace Docs](https://docs.dynatrace.com/docs/semantic-dictionary/tags/sensitive-spans)

This means:

1. Data privacy settings&nbsp;may be masking/blocking the values — check&nbsp;Settings → Server-side service monitoring → Deep monitoring → Database → “Capture SQL bind values”&nbsp;is enabled
2. The attribute may not be exposed to the Request Attributes feature depending on your privacy configuration

If you run the following DQL and get 0 results, it means the values aren’t being captured at all, the privacy settings above need to be enabled first before any syntax will work:

fetch spans  
| filter isNotNull(db.query.parameters)  
| fields db.query.parameters

 ![sujit_k_singh_0-1784722534915.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/ef3f572df40302cb7b8acc6959e3343c475a5b8c.png)
