<?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: How to get OneAgent SDK-added custom request attributes available for request filtering? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Capture-OneAgent-SDK-Custom-Request-Attributes-in-Dynatrace/m-p/266846#M35278</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello! Everything is done correctly, except that on the Dynatrace side, this attribute needs to be added and the type&lt;STRONG&gt; SDK&lt;/STRONG&gt; &lt;STRONG&gt;custom attrubute&lt;/STRONG&gt; should be specified&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romanenkov_Al3x_0-1736329110846.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25602iE5FAC8C5441CCBCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romanenkov_Al3x_0-1736329110846.png" alt="Romanenkov_Al3x_0-1736329110846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/news/blog/capture-any-request-attributes-using-oneagent-sdk/#:~:text=SDK%20custom%20attribute" target="_self"&gt;More&lt;/A&gt; screenshots in blog.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex Romanenkov&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jan 2025 09:39:22 GMT</pubDate>
    <dc:creator>Romanenkov_Al3x</dc:creator>
    <dc:date>2025-01-08T09:39:22Z</dc:date>
    <item>
      <title>Capture OneAgent SDK Custom Request Attributes in Dynatrace</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Capture-OneAgent-SDK-Custom-Request-Attributes-in-Dynatrace/m-p/266815#M35275</link>
      <description>&lt;P&gt;&lt;EM&gt;Summary:&amp;nbsp;This post explains how to configure Dynatrace so that request attributes added through the OneAgent SDK are captured and displayed. It clarifies required instrumentation, attribute settings, and verification steps.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I was kicking the tires on using OneAgent SDK in a Java (Jersey/Tomcat) application to enrich existing service request traces with additional computed attributes - fo,r example a boolean indicating whether the service chose to stream a response or not. Using code quite like the SDK's example on a Path-annotated method on a Resource class that corresponds to a Dynatrace-monitored service:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;SPAN&gt;oneAgentSdk&lt;/SPAN&gt;.addCustomRequestAttribute(&lt;SPAN&gt;"pricing-streamed"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;Boolean.&lt;SPAN&gt;toString&lt;/SPAN&gt;(isStreamed))&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;I'm now seeing this "pricing-streamed" value (and a couple others I also added in code this way) showing up in traces at code-level under a category "Metadata" on the Jersey AbstractJavaResourceMethodDispatcher dispatch call:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="waded_0-1736281602622.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25593i35D2FC61F8AED4C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="waded_0-1736281602622.png" alt="waded_0-1736281602622.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I'm not seeing "pricing-streamed" as an option for the same traces when using the "Request attribute" filter for the service these traces show up under:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="waded_1-1736281771570.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25594iCD62E9FDC5959061/image-size/medium?v=v2&amp;amp;px=400" role="button" title="waded_1-1736281771570.png" alt="waded_1-1736281771570.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, how would I be able to filter to requests using this "pricing-streamed" request attribute?&lt;/P&gt;
&lt;P&gt;I suspect perhaps there's something we need to adjust administratively? It sounds like for OTEL, at least, some kind of promotion to request attribute is required? But I'm&amp;nbsp;using OneAgent SDK alone, and documentation, and method name "addCustomRequestAttribute" make it sound about as simple as what I've done - I've added a custom request attribute, how do I get it visible as a request attribute?&lt;/P&gt;
&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 10:39:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Capture-OneAgent-SDK-Custom-Request-Attributes-in-Dynatrace/m-p/266815#M35275</guid>
      <dc:creator>waded</dc:creator>
      <dc:date>2026-01-23T10:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OneAgent SDK-added custom request attributes available for request filtering?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Capture-OneAgent-SDK-Custom-Request-Attributes-in-Dynatrace/m-p/266846#M35278</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello! Everything is done correctly, except that on the Dynatrace side, this attribute needs to be added and the type&lt;STRONG&gt; SDK&lt;/STRONG&gt; &lt;STRONG&gt;custom attrubute&lt;/STRONG&gt; should be specified&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Romanenkov_Al3x_0-1736329110846.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25602iE5FAC8C5441CCBCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Romanenkov_Al3x_0-1736329110846.png" alt="Romanenkov_Al3x_0-1736329110846.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/news/blog/capture-any-request-attributes-using-oneagent-sdk/#:~:text=SDK%20custom%20attribute" target="_self"&gt;More&lt;/A&gt; screenshots in blog.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex Romanenkov&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 09:39:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Capture-OneAgent-SDK-Custom-Request-Attributes-in-Dynatrace/m-p/266846#M35278</guid>
      <dc:creator>Romanenkov_Al3x</dc:creator>
      <dc:date>2025-01-08T09:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OneAgent SDK-added custom request attributes available for request filtering?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Capture-OneAgent-SDK-Custom-Request-Attributes-in-Dynatrace/m-p/266910#M35292</link>
      <description>&lt;P&gt;Ah, excellent, thanks Alex. I knew I was missing something. (I can't access those screens, so I was relying on the documentation starting from the SDK documentation, and didn't find this blog post. It's pretty sparse linkage in that direction, only 4 results for&amp;nbsp;&lt;A href="https://www.google.com/search?q=dynatrace+%22SDK+custom+attribute%22+github," target="_blank" rel="noopener"&gt;https://www.google.com/search?q=dynatrace+%22SDK+custom+attribute%22+github,&lt;/A&gt;&amp;nbsp;I'll submit a documentation PR to help with this.)&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 15:54:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Capture-OneAgent-SDK-Custom-Request-Attributes-in-Dynatrace/m-p/266910#M35292</guid>
      <dc:creator>waded</dc:creator>
      <dc:date>2025-01-08T15:54:24Z</dc:date>
    </item>
  </channel>
</rss>

