I have a reactjs application where i am using react-router library but that router library has a javascript error boundry error handling in built. So i am unabel to see that JS error in dynatrace. What can i do ?
Using the injected Dynatrace javascript directly, you could add the errors to Dynatrace as well, by adding a few lines to your frontend central errorhandler…
please check more options in the documentation…
something like this (created a centralised error handler with window.error):
window.onerror = (event) => {<br> console.log("Error occurred: " + event);<br> //check if Dynatrace agent is available<br> if (typeof dT_ !== 'undefined') {<br> dtrum.reportError(event);<br> }<br>}