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:
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:
db.query.parameters.6 — using dot notation with the string index (no brackets, no @)
However, there’s an important caveat: db.query.parameters is classified as a sensitive span field in Dynatrace.
Data privacy settings may be masking/blocking the values — check Settings → Server-side service monitoring → Deep monitoring → Database → “Capture SQL bind values” is enabled
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: