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

Nested custom actions RUM JavaScript

Diego_Rincon
Newcomer

I need to report a custom user action the triggers several asynchronous loads on the website. I've been taking a look at the dtrum documentation but I haven't found anything. iOS SDK has the functionality that I'm looking for but I haven't seen an equivalent for JavaScript.

In iOS it looks like this:

let childAction = DTXAction.enter(withName: #function, parentAction: parentAction)


3 REPLIES 3

zietho
Dynatrace Leader
Dynatrace Leader

Dear Diego,

for XHR actions we usually correlate all subsequent requests in the cascade.

We soon gonna update this info, since we gonna change a bit of logic when "redirects" come into play. I already jotted down to also cover that aspect!

regards

Thomas

Hi Thomas,


Thank you for your reply. Unfortunately, this is not enough for us. We have several components that have different conditions to be displayed that go beyond the request being successful or not. We have seen some of these failing even though the request was successful. That's why we need custom actions to track errors in the FE.


Kind regards,


Diego

Hey, ok I think I now "better" but not fully understood what you want.

Let's start from actions...

  • You can create your own custom actions with the RUM JavaScript API, docs you find under YOURENV/#settings/rum/advancedsetup;gf=all or Settings > Web and mobile monitoring > Advanced Setup

Then you spoke of "We have seen some of these failing even though the request was successful."

So, and correct me if I am wrong, you would ideally want to

  • report your own custom errors of such failing components tied to an action that you created before, which is also possible with the RUM JavaScript API (see docs that I mentioned before)

All related requests are then correlated by Dynatrace to such actions.

What I haven't yet understood is:

  • How and why you want to tie child and parent actions to each other, and
  • What you would like to see where in the Dynatrace UI as a result

Featured Posts