27 Mar 2026
02:24 AM
- last edited on
27 Mar 2026
10:44 AM
by
MaciejNeumann
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!
Solved! Go to Solution.
22 Jul 2026 01:17 PM
Hi @izza
According to Dynatrace documentation, db.query.parameters is stored as a key-value map (not a simple array).The correct syntax for accessing span attribute map values in Request Attributes should be:
However, there's an important caveat: db.query.parameters is classified as a sensitive span field in Dynatrace.
Sensitive spans fields — Dynatrace Docs
This means:
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
Featured Posts