<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dynatrace isn't capturing the javascript errors in my application which are handled by react-router error boundry. in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-isn-t-capturing-the-javascript-errors-in-my/m-p/268099#M35452</link>
    <description>&lt;P&gt;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 ?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2025 11:39:14 GMT</pubDate>
    <dc:creator>sai35277</dc:creator>
    <dc:date>2025-01-22T11:39:14Z</dc:date>
    <item>
      <title>Dynatrace isn't capturing the javascript errors in my application which are handled by react-router error boundry.</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-isn-t-capturing-the-javascript-errors-in-my/m-p/268099#M35452</link>
      <description>&lt;P&gt;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 ?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 11:39:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-isn-t-capturing-the-javascript-errors-in-my/m-p/268099#M35452</guid>
      <dc:creator>sai35277</dc:creator>
      <dc:date>2025-01-22T11:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace isn't capturing the javascript errors in my application which are handled by react-router error boundry.</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-isn-t-capturing-the-javascript-errors-in-my/m-p/269054#M35594</link>
      <description>&lt;P&gt;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...&lt;/P&gt;&lt;P&gt;please check more options in the documentation...&lt;/P&gt;&lt;P&gt;something like this (created a centralised error handler with window.error):&lt;/P&gt;&lt;PRE&gt;window.onerror = (event) =&amp;gt; {&lt;BR /&gt;  console.log("Error occurred: " + event);&lt;BR /&gt;  //check if Dynatrace agent is available&lt;BR /&gt;  if (typeof dT_ !== 'undefined') {&lt;BR /&gt;    dtrum.reportError(event);&lt;BR /&gt;  }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 11:40:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-isn-t-capturing-the-javascript-errors-in-my/m-p/269054#M35594</guid>
      <dc:creator>SjoerdB</dc:creator>
      <dc:date>2025-02-03T11:40:02Z</dc:date>
    </item>
  </channel>
</rss>

