<?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: Nice to know, but did anybody implement this? in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211728#M4321</link>
    <description>&lt;P&gt;Reading all comments, in short:&lt;/P&gt;&lt;P&gt;1) The browser sends a request to the server (including oneAgent)&lt;/P&gt;&lt;P&gt;2) Server/Onegent try to determine what domain can be found in the request.&lt;/P&gt;&lt;P&gt;3) A set-cookie is send back with a manually set defined domain, or the found domain in the request (rule based), or the OneAgent server domain itself.&lt;/P&gt;&lt;P&gt;4) This cookie domain is further&amp;nbsp; used in the session&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 13:36:07 GMT</pubDate>
    <dc:creator>henk_stobbe</dc:creator>
    <dc:date>2023-05-09T13:36:07Z</dc:date>
    <item>
      <title>Nice to know, but did anybody implement this?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211122#M4294</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/platform-modules/digital-experience/web-applications/initial-setup/define-your-applications-via-the-my-web-application-placeholder#rum-appdetection-uninstrumentedcomponent" target="_blank" rel="noopener"&gt;https://www.dynatrace.com/support/help/platform-modules/digital-experience/web-applications/initial-setup/define-your-applications-via-the-my-web-application-placeholder#rum-appdetection-uninstrumentedcomponent&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can read that when the host name is rewritten by a&amp;nbsp; proxy or load balancer the&amp;nbsp;&lt;A class="" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host" target="_blank" rel="noopener"&gt;X-Forwarded-Host&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded" target="_blank" rel="noopener"&gt;Forwarded&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;header can be used by oneAgent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I assume that the detection rule and the&amp;nbsp; of the original host/domain can be used is this correct?&lt;/P&gt;&lt;P&gt;- The cookie set by oneAgent will contain original host/domain tp prevent CORS issue's&lt;/P&gt;&lt;P&gt;- If you have original and rewritten, put the rewritten detection rule first?&lt;/P&gt;&lt;P&gt;Who has tested this in practice? And does this really work? It sounds like magic (-;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 18:56:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211122#M4294</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2023-05-01T18:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know, but did anybody implement this?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211351#M4299</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It becomes a nice to know (-;&lt;/P&gt;&lt;P&gt;Found more info, there are options in dynatrace to use&amp;nbsp; information in "request headers" to modify the Hostname and/or IP from the source:&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="henk_stobbe_0-1683185733109.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/11463i713058104C31947D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="henk_stobbe_0-1683185733109.png" alt="henk_stobbe_0-1683185733109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR Henk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 07:36:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211351#M4299</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2023-05-04T07:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know, but did anybody implement this?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211380#M4303</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11427"&gt;@henk_stobbe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;- I assume that the detection rule and the&amp;nbsp; of the original host/domain can be used is this correct?&lt;/P&gt;&lt;P&gt;- If you have original and rewritten, put the rewritten detection rule first?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As I understand this we need only one rule - that contains&amp;nbsp;original host/domain.&lt;/P&gt;&lt;P&gt;If JS agent can't define application URL - in this case JS agent will try to find value in:&lt;BR /&gt;&lt;SPAN&gt;X-Host,&lt;/SPAN&gt; &lt;SPAN&gt;X-Forwarded-Host, YOUR-TEAM-CUSTOM-HEADER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If JS agent can define without this headers - rules will work - so application detection rule for&amp;nbsp;original host/domain - will work. If can't - and headers were added - again will work rule that contain original "host/domain".&lt;/P&gt;&lt;P&gt;We faced this when HTTP2 is using - there is no header "host" in this case.&amp;nbsp; You can check - if you will see in DevTools something like this in request headers (&amp;nbsp;&lt;SPAN&gt;:authority: )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;One case was to ask Customer don't block request header &lt;STRONG&gt;origin&lt;/STRONG&gt; \ request header - &lt;STRONG&gt;host&lt;/STRONG&gt;. After this&amp;nbsp;JS agent in our case define application URL correclty without additional headers.&lt;/P&gt;&lt;P&gt;Another case was to ask put correct info in X-Host, X-Forwarded-Host. Also rules works that contain original "host/domain".&lt;/P&gt;&lt;P&gt;Anyway for all of these cases - it will take time to troubleshoot. Also in such situations additional logs on web server helps, which can locate "client request headers", because in our case Customer team said that there is no PROBLEM on load-balancers and firewalls and REQUEST HEADERS are set by browser on client side, but when we try to check the logs on last web server in the chain - customer has gotten "many surprises".&lt;/P&gt;&lt;P&gt;Unfortunately, the Customer team could not do anything with it, so we created a separate environment for this application and rename Defaul RUM Application\ My Web Application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All such difficult cases were successfully resolved by Dynatrace Support Team.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Big thanks to&amp;nbsp;Shahin Mikayilov &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In these cases, I would ask the Сustomer for extended logs, all the necessary and helpful information and would ask&amp;nbsp; support for help. This could really save a lot of time.&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>Thu, 04 May 2023 10:35:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211380#M4303</guid>
      <dc:creator>Romanenkov_Al3x</dc:creator>
      <dc:date>2023-05-04T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Nice to know, but did anybody implement this?</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211728#M4321</link>
      <description>&lt;P&gt;Reading all comments, in short:&lt;/P&gt;&lt;P&gt;1) The browser sends a request to the server (including oneAgent)&lt;/P&gt;&lt;P&gt;2) Server/Onegent try to determine what domain can be found in the request.&lt;/P&gt;&lt;P&gt;3) A set-cookie is send back with a manually set defined domain, or the found domain in the request (rule based), or the OneAgent server domain itself.&lt;/P&gt;&lt;P&gt;4) This cookie domain is further&amp;nbsp; used in the session&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 13:36:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Nice-to-know-but-did-anybody-implement-this/m-p/211728#M4321</guid>
      <dc:creator>henk_stobbe</dc:creator>
      <dc:date>2023-05-09T13:36:07Z</dc:date>
    </item>
  </channel>
</rss>

