<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DB Query Parameter as Request Attributes in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/DB-Query-Parameter-as-Request-Attributes/m-p/302253#M39292</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/100496"&gt;@izza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to Dynatrace documentation,&amp;nbsp;db.query.parameters&amp;nbsp;is stored as a&amp;nbsp;key-value map&amp;nbsp;(not a simple array).The correct syntax for accessing span attribute map values in Request Attributes should be:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;db.query.parameters.6&amp;nbsp;— using dot notation with the string index (no brackets, no @)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, there's an important caveat:&amp;nbsp;db.query.parameters&amp;nbsp;is classified as a&amp;nbsp;sensitive span field&amp;nbsp;in Dynatrace.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/semantic-dictionary/tags/sensitive-spans" rel="noopener" target="_blank"&gt;Sensitive spans fields — Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;This means:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Data privacy settings&amp;nbsp;may be masking/blocking the values — check&amp;nbsp;Settings → Server-side service monitoring → Deep monitoring → Database → "Capture SQL bind values"&amp;nbsp;is enabled&lt;/LI&gt;&lt;LI&gt;The attribute may not be exposed to the Request Attributes feature depending on your privacy configuration&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;fetch spans&lt;BR /&gt;| filter isNotNull(db.query.parameters)&lt;BR /&gt;| fields db.query.parameters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sujit_k_singh_0-1784722534915.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33740iACC20B44BB11B4D0/image-size/large?v=v2&amp;amp;px=999" alt="sujit_k_singh_0-1784722534915.png" title="sujit_k_singh_0-1784722534915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jul 2026 12:17:17 GMT</pubDate>
    <dc:creator>sujit_k_singh</dc:creator>
    <dc:date>2026-07-22T12:17:17Z</dc:date>
    <item>
      <title>DB Query Parameter as Request Attributes</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/DB-Query-Parameter-as-Request-Attributes/m-p/296786#M38826</link>
      <description>&lt;P&gt;Hi Dynatrace Community,&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What I have tried so far:&lt;/STRONG&gt;&lt;BR /&gt;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:&lt;/P&gt;
&lt;P&gt;- `db.query.parameters[@6]`&lt;BR /&gt;- `db.query.parameters[6]`&lt;BR /&gt;- `db.query.parameters.@6`&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help or guidance is appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 10:44:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/DB-Query-Parameter-as-Request-Attributes/m-p/296786#M38826</guid>
      <dc:creator>izza</dc:creator>
      <dc:date>2026-03-27T10:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: DB Query Parameter as Request Attributes</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/DB-Query-Parameter-as-Request-Attributes/m-p/302253#M39292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/100496"&gt;@izza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to Dynatrace documentation,&amp;nbsp;db.query.parameters&amp;nbsp;is stored as a&amp;nbsp;key-value map&amp;nbsp;(not a simple array).The correct syntax for accessing span attribute map values in Request Attributes should be:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;db.query.parameters.6&amp;nbsp;— using dot notation with the string index (no brackets, no @)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;However, there's an important caveat:&amp;nbsp;db.query.parameters&amp;nbsp;is classified as a&amp;nbsp;sensitive span field&amp;nbsp;in Dynatrace.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/semantic-dictionary/tags/sensitive-spans" rel="noopener" target="_blank"&gt;Sensitive spans fields — Dynatrace Docs&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;This means:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Data privacy settings&amp;nbsp;may be masking/blocking the values — check&amp;nbsp;Settings → Server-side service monitoring → Deep monitoring → Database → "Capture SQL bind values"&amp;nbsp;is enabled&lt;/LI&gt;&lt;LI&gt;The attribute may not be exposed to the Request Attributes feature depending on your privacy configuration&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;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:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;fetch spans&lt;BR /&gt;| filter isNotNull(db.query.parameters)&lt;BR /&gt;| fields db.query.parameters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sujit_k_singh_0-1784722534915.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33740iACC20B44BB11B4D0/image-size/large?v=v2&amp;amp;px=999" alt="sujit_k_singh_0-1784722534915.png" title="sujit_k_singh_0-1784722534915.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2026 12:17:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/DB-Query-Parameter-as-Request-Attributes/m-p/302253#M39292</guid>
      <dc:creator>sujit_k_singh</dc:creator>
      <dc:date>2026-07-22T12:17:17Z</dc:date>
    </item>
  </channel>
</rss>

