<?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: Request attributes map in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244158#M32077</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/45543"&gt;@PierreGutierrez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the advice, I'll try to do that&lt;/P&gt;&lt;P&gt;And if the dictionary has more meanings than one, for example like this&lt;/P&gt;&lt;P&gt;sessionid=38288228, blockid=4646466446, useruiid=49393838&lt;/P&gt;&lt;P&gt;and there can be up to 50 such values. Can dynatrace see them all?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 05:27:02 GMT</pubDate>
    <dc:creator>Hector1</dc:creator>
    <dc:date>2024-04-29T05:27:02Z</dc:date>
    <item>
      <title>Request attributes map</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244137#M32071</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I'm new to monitoring, please don't judge too harshly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help me with a question&lt;/P&gt;&lt;P&gt;I want to retrieve the key values ​​via request attributes for the java.util.map method&lt;/P&gt;&lt;P&gt;I try via get("key") but dynatrace writes an error&lt;/P&gt;&lt;P&gt;how can I get the value of the keys?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 05:32:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244137#M32071</guid>
      <dc:creator>Hector1</dc:creator>
      <dc:date>2024-04-28T05:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Request attributes map</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244138#M32072</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75130"&gt;@Hector1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share screenshot for the configurations&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 06:39:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244138#M32072</guid>
      <dc:creator>Esam_Eid</dc:creator>
      <dc:date>2024-04-28T06:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Request attributes map</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244143#M32073</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/65475"&gt;@Esam_Eid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;import java.util.HashMap;&lt;/P&gt;&lt;P&gt;import java.util.Map;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public class Main {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; public static void main(String[] args) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Create&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_20240428_133147.jpg" style="width: 3472px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19472i9448BCC82B6D6E6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_20240428_133147.jpg" alt="IMG_20240428_133147.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Map&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Map&amp;lt;String, String&amp;gt; map = new HashMap&amp;lt;&amp;gt;();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // — Map&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; map.put("Sessionid", "47488338");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Map —&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(map);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;here is the usual code in java and from it I need to extract the key value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The screenshot shows that dynatrace does not allow this to be done as can be done in java code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 08:32:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244143#M32073</guid>
      <dc:creator>Hector1</dc:creator>
      <dc:date>2024-04-28T08:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Request attributes map</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244154#M32076</link>
      <description>&lt;P&gt;Hola&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75130"&gt;@Hector1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I see you are using a data type: Dictionary (key, value).&lt;BR /&gt;I think Dynatrace can't interpret it.&lt;/P&gt;&lt;P&gt;I also see that the result of your method is System.out.printIn(map), if so.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maybe you can capture the result of your method ( Change the option Capture)&amp;nbsp;&lt;/STRONG&gt;, because it will be a string like " SessionId,47488338 ", and then you can use the "Restrict or further process the captured parameters" option.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PierreGutierrez_0-1714356756217.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19475i1CA9B3701DB3CD2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PierreGutierrez_0-1714356756217.png" alt="PierreGutierrez_0-1714356756217.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I hope it's helpful&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 02:20:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244154#M32076</guid>
      <dc:creator>PierreGutierrez</dc:creator>
      <dc:date>2024-04-29T02:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Request attributes map</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244158#M32077</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/45543"&gt;@PierreGutierrez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the advice, I'll try to do that&lt;/P&gt;&lt;P&gt;And if the dictionary has more meanings than one, for example like this&lt;/P&gt;&lt;P&gt;sessionid=38288228, blockid=4646466446, useruiid=49393838&lt;/P&gt;&lt;P&gt;and there can be up to 50 such values. Can dynatrace see them all?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 05:27:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244158#M32077</guid>
      <dc:creator>Hector1</dc:creator>
      <dc:date>2024-04-29T05:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Request attributes map</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244169#M32078</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PacoPorro_0-1714373730687.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19477i6351FAC3C2575248/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PacoPorro_0-1714373730687.png" alt="PacoPorro_0-1714373730687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PacoPorro_1-1714373763241.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19478i67E23738D675EE0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PacoPorro_1-1714373763241.png" alt="PacoPorro_1-1714373763241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 06:56:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244169#M32078</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2024-04-29T06:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Request attributes map</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244256#M32081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75130"&gt;@Hector1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If your method is going to be executed multiple times in the call (and at those times different data will be sent and those different values must be captured).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PierreGutierrez_0-1714401216084.png" style="width: 497px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19508i954495A485AA7514/image-dimensions/497x216?v=v2" width="497" height="216" role="button" title="PierreGutierrez_0-1714401216084.png" alt="PierreGutierrez_0-1714401216084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: It is important that you know that with this configuration only 10 different values are captured.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In that case, what PacoPorro recommends is a good alternative &lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;In addition to this, I present other scenarios that may be useful to you:&lt;/P&gt;&lt;P&gt;1.- &lt;STRONG&gt;Use a different request attribute&lt;/STRONG&gt;: Apply rules to capture different values, example:&lt;BR /&gt;&lt;BR /&gt;- RA 1: Session ID&lt;BR /&gt;- RA 2: Block ID&lt;BR /&gt;&lt;BR /&gt;This will be useful when you want to analyze data in multidimensional &lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt; and create Calculated Service Metrics in the future.&lt;/P&gt;&lt;P&gt;2.- &lt;STRONG&gt;Use Business Event:&lt;/STRONG&gt; If you have a different Key, it is a perfect scenario to use it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/ba-business-events-capturing" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/ba-business-events-capturing&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;One of the good practices for using Request Attribute in Dyantrace is not to apply too many request attributes to the services.&lt;/P&gt;&lt;P&gt;Using them excessively can affect performance.&lt;BR /&gt;&lt;BR /&gt;I hope it's helpful &lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 14:40:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Request-attributes-map/m-p/244256#M32081</guid>
      <dc:creator>PierreGutierrez</dc:creator>
      <dc:date>2024-04-29T14:40:46Z</dc:date>
    </item>
  </channel>
</rss>

