However, due to some factors then the interface might not be available and will cause some issues during instrumentation. You may face errors like "dtrum is undefined".
Here are some sanity checks we can perform to figure out why dtrum is not available:
If you see an error similar to this then we need to make sure that our configuration (dynatrace.config.js) is correct. Specifically, we need make sure that the js url is valid/correct and has a valid access tokens.
- check the elements tab and see if the script is inserted to the html page:
If the script is not inserted then you need to check the build logs for any errors.
- check if the js agent code is downloaded successfully by going to the networks tabs. The response should be http 200 (OK).
If the js agent is not downloaded successfully then you need to check for any environmental factors that may affect this. In most cases, there might be some middle layers that are affecting this. See this documentation https://www.dynatrace.com/support/help/shortlink/rum-firewall
What to do next?
After all the checks and we still see the same problem then you can provide the build logs (from #1) and the HAR file (from #2) to the support ticket (create a new ticket if none yet).