21 Jul 2022 08:40 PM - edited 21 Jul 2022 08:42 PM
I have a timer observable in angular in the following manner,
Solved! Go to Solution.
21 Jul 2022 09:12 PM
@KiranAIR - So this XHR call is initiated without user input? If this is true, then it won't be detected as user action. User action are - as the name says it - actions initiated by a user. If it's on a background, it's not (typically) a user action.
So if you want this XHR call detected become a user action you have several options:
22 Jul 2022 05:11 PM
Hey Julius,
This XHR call is initiated on the panel creation. On click of a button, In
22 Jul 2022 05:51 PM
I think if you are injecting the RUM before you are creating the panel, then you should be able to call the dtrum API just fine. You need to handle if it's injected anyway.
For the missing first XHR I can think of two reasons:
22 Jul 2022 08:39 PM
Hi Julius,
I will try definitely try the api, I can see the documentation for JavaScript Rum API but no examples on how to integrate with an application. Do I directly use dtrum or need to import it explicitly and then use? It would be great if you could redirect to any examples.
I do have timeout setting enabled. There was on other user action triggered on the panel (a call made to fetch an icon). For now, I have set that to be primary criteria for creation.
Thanks for your help.
22 Jul 2022 09:32 PM
If you download the package in your Dynatrace environment (go to Settings -> Web and mobile monitoring -> Advanced setup) it contains API docs (the same as on the web) and also examples.
You just need to check if the dtrum object is present (e.g. typeof (dtrum) !== "undefined" ) and then call the methods and it should be just fine.