<?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 Javascript API:  how to use with cascading XHRs in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Javascript-API-how-to-use-with-cascading-XHRs/m-p/162944#M16114</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We have a webapp with pages that generate many many cascading XHRs.&amp;nbsp;&lt;BR /&gt;We'd like to have an implementation that could give us the performance of those pages.&lt;BR /&gt;&lt;BR /&gt;Even having used the "Extend action durations with cascading timed actions", the auto UA capturing did not help us.&amp;nbsp; So we're considering a suitable custom-actions implementation.&lt;BR /&gt;&lt;BR /&gt;I'd like to ask:&lt;BR /&gt;&lt;BR /&gt;1)&amp;nbsp; Can a custom action implementation (using: dtrum.enterAction(..)&amp;nbsp; / dtrum.leaveAction(action)) live side by side with the auto-UA-mechanism?&amp;nbsp; &amp;nbsp;&lt;BR /&gt;-In appmon we actually had to turn it off because the 'currently active user action' was erratic and requests would be scattered inconsistently between the custom UA and the auto mechanism's UA.&lt;BR /&gt;&lt;BR /&gt;2) Can the auto-UA-mechanism be disabled?&amp;nbsp; How do I do that?&lt;BR /&gt;*without disabling the auto-injection itself.&lt;BR /&gt;&lt;BR /&gt;3) What's the best way to group those XHRs together?&lt;BR /&gt;Currently considering using something of this sort:&lt;BR /&gt;&lt;BR /&gt;actionId = dtrum.enterAction("my page load")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;dtrum.enter&lt;/SPAN&gt;&lt;SPAN&gt;Xhr&lt;/SPAN&gt;&lt;SPAN&gt;Callback&lt;/SPAN&gt;&lt;SPAN class="tsd-signature-symbol"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;actionId)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dtrum.leaveXhrCallback&lt;SPAN class="tsd-signature-symbol"&gt;(&lt;/SPAN&gt;actionId)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dtrum.leaveAction(actionId);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 07:24:41 GMT</pubDate>
    <dc:creator>danielbr</dc:creator>
    <dc:date>2021-03-17T07:24:41Z</dc:date>
    <item>
      <title>Javascript API:  how to use with cascading XHRs</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Javascript-API-how-to-use-with-cascading-XHRs/m-p/162944#M16114</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;We have a webapp with pages that generate many many cascading XHRs.&amp;nbsp;&lt;BR /&gt;We'd like to have an implementation that could give us the performance of those pages.&lt;BR /&gt;&lt;BR /&gt;Even having used the "Extend action durations with cascading timed actions", the auto UA capturing did not help us.&amp;nbsp; So we're considering a suitable custom-actions implementation.&lt;BR /&gt;&lt;BR /&gt;I'd like to ask:&lt;BR /&gt;&lt;BR /&gt;1)&amp;nbsp; Can a custom action implementation (using: dtrum.enterAction(..)&amp;nbsp; / dtrum.leaveAction(action)) live side by side with the auto-UA-mechanism?&amp;nbsp; &amp;nbsp;&lt;BR /&gt;-In appmon we actually had to turn it off because the 'currently active user action' was erratic and requests would be scattered inconsistently between the custom UA and the auto mechanism's UA.&lt;BR /&gt;&lt;BR /&gt;2) Can the auto-UA-mechanism be disabled?&amp;nbsp; How do I do that?&lt;BR /&gt;*without disabling the auto-injection itself.&lt;BR /&gt;&lt;BR /&gt;3) What's the best way to group those XHRs together?&lt;BR /&gt;Currently considering using something of this sort:&lt;BR /&gt;&lt;BR /&gt;actionId = dtrum.enterAction("my page load")&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;dtrum.enter&lt;/SPAN&gt;&lt;SPAN&gt;Xhr&lt;/SPAN&gt;&lt;SPAN&gt;Callback&lt;/SPAN&gt;&lt;SPAN class="tsd-signature-symbol"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;actionId)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dtrum.leaveXhrCallback&lt;SPAN class="tsd-signature-symbol"&gt;(&lt;/SPAN&gt;actionId)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dtrum.leaveAction(actionId);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 07:24:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Javascript-API-how-to-use-with-cascading-XHRs/m-p/162944#M16114</guid>
      <dc:creator>danielbr</dc:creator>
      <dc:date>2021-03-17T07:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript API:  how to use with cascading XHRs</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Javascript-API-how-to-use-with-cascading-XHRs/m-p/162967#M16122</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) As far as I know, if you are adding custom actions on events that the content capture setting will catch, then you need to switch off the the automatic action detection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) You can use&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;to&amp;nbsp;e&lt;SPAN&gt;nables or disables automatic action detection&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_0-1615963547046.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/297iCADC3CFDC85585D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_0-1615963547046.png" alt="Yosi_Neuman_0-1615963547046.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) You can check also if the use of&amp;nbsp;&lt;STRONG&gt;enterXhrAction&lt;/STRONG&gt; with xmode=2 will do the trick of adding subaction&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_0-1615964709264.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/298i05BF929403F0BADE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_0-1615964709264.png" alt="Yosi_Neuman_0-1615964709264.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 07:23:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Javascript-API-how-to-use-with-cascading-XHRs/m-p/162967#M16122</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2021-03-17T07:23:13Z</dc:date>
    </item>
  </channel>
</rss>

