title: How to automaticaly send ALL errors from javascript to Sentry?
body: <p>I want to "automatically" sent all errors from my React project to Sentry, and i mean absolutely ALL, from the code, from React, from Promises. </p>
  
  <p>Is it realistic to set it up?</p>
  
  <p>By init:</p>
  
  <pre><code>    import * as Sentry from '@sentry/browser';
      Sentry.init({ dsn: 'https://&lt;key&gt;@sentry.io/&lt;project&gt;' });
  </code></pre>
  
  <p>Sentry handles only "uncaught exceptions and unhandled rejections"</p>
  
  <p>From docs:</p>
  
  <p>"<strong>Automatically Capturing Errors</strong></p>
  
  <p>By including and configuring Sentry, the SDK will automatically attach global handlers to capture uncaught exceptions and unhandled rejections."</p>
  
  <p><a href="https://docs.sentry.io/platforms/javascript/#automatically-capturing-errors" rel="noreferrer">https://docs.sentry.io/platforms/javascript/#automatically-capturing-errors</a></p>