cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Agentless Real User Monitoring with Code Snippet (defer)

Hello Folks, We have been using Agentless real user monitoring to monitor some of our Single page applications built in Angular. And to avoid the performance impact, we ended up using Code Snippet (defer) format of injection.

I have realised & noticed that in some cases we don't get the relevant data or user actions which we are supposed to get and I think it could be because it's loading asynchronously. I have few questions around Dynatrace RUM which I will highlight below in points. Also wherever I have mentioned documentation, I am referring to here - https://docs.dynatrace.com/docs/shortlink/rum-injection#manual-insertion 

  1. Dynatrace recommends to add the script as early as possible. Does it matter if we do it sync or async? The recommended way is to use the JavaScript tag but that is a sync call and lets say for some reason, call to the cluster active gate is taking longer to response, than that will affect my application to load. How can we avoid this scenario?
  2. If we use Inline Code (jsInlineScript) and manage it using the API as mentioned in the documentation, will that have the same affect as JavaScript tag?
  3. I don't want to loose any monitoring data and neither I want to have a performance impact. Is there a way to achieve this?
  4. As far as I know, there are 2 requests made to Dynatrace in case of RUM, one is to GET the JavaScript Code or monitoring Code and then another is POST to send the data captured from browser. Are both calls sync or just the 1st one?

Any guidance on this is appreciated.

Best Regards,
Shashank

0 REPLIES 0

Featured Posts