05 Dec 2021 04:11 PM - last edited on 06 Dec 2021 12:58 AM by MaciejNeumann
Hi, I've been using Dynatrace RUM to monitor my web application. The application is segregated into multiple micro apps which is handled by different teams. It's a serverless application so we are using manual injection.
But as mentioned in Dynatrace wiki documentation as well, this method as maintenance overhead as we need to update the monitoring code every time we make any changes in Dynatrace settings.
Any suggestions or ideas on how I achieve this in a best way? Appreciate in advance.
After a long time, once again I had gone throught the documentation.
Please have a look at the below link for more insight:
Hi @Babar_Qayyum Thank you for the quick response. I was looking at the Code Snippet option and it has 2 methods - sync and deferred. We obviously don't want to use Sync because it's render blocking and may affect performance.
Now with the deferred (Async) method, is there a recommended way to to use this? I mean where should we put this in our application html? Since it is deferred, will we loose some kind of monitoring visiblity? Also there is a line which says - "Requires regular snippet updates to guarantee compatibility." What does it mean? Do we need to update the html files everytime we change the settings in Dynatrace?
Let me know if you can advice on this please.
@Babar_Qayyum The reason I asked this is because I tried to change a setting in Advanced set up (cux=1) and it is now asking me to change the code snippet in application. How do i avoid this everytime i make the changes?
Please see the screenshot attached.
Are @agrawal_shashan's hints possible to receive some kind of workaround?
Thank you for feedback in advance!
Apologies for the late reply. I am not 100% confident about the best practices but I believe they should be placed at the beginning of each HTML page similar to other codes.
Exactly. The code snipped required a manual update every time to adapt to the changes.