title: How can I capture errors and exceptions data from frontend response to django to add more context
body: <p>I want to receive some parameters with my error capture on django when something wrong on the front-end</p>
  
  <p>I have react frontend running on a django backend. Sentry is been used to capture errors and report.</p>
  
  <p>In settings.py: </p>
  
  <pre class="lang-py prettyprint-override"><code>SENTRY_DSN = os.environ.get("SENTRY_DSN")
  if SENTRY_DSN:
      sentry_sdk.init(
          dsn=SENTRY_DSN,
          integrations=[DjangoIntegration()],
          environment=ENVIRONMENT,
          release=os.environ.get("HEROKU_RELEASE_VERSION")
          or "HEROKU_RELEASE_VERSION not set",
      )
      with configure_scope() as scope:
          scope.user = {"user": "broken lol"}
  </code></pre>
  
  <p>This is reporting the errors from entire app.</p>
  
  <p>However, I want to add user ids to error Sentry reports. To do that I need to capture the response from frontend and somehow get that into settings.py and replace the <code>"broken lol"</code> string with <code>UserId</code></p>