Removing "request" from tracing data

The URL of our app (a Jira add-on) contains sensitive information. When submitting errors, we therefore use the JS SDK’s ‘beforeSend’ function to remove the “request” field. However, such “interception” is not currently available for browser tracing.

Is there another way to get rid of the “request” field for tracing data?

Cheers, H

friendly bump

Sentry.configureScope((scope) => {
  scope.addEventProcessor((event) => {
    delete event.request;
    return event;
  });
});

This should work.

Thanks @kamilogorek, works like a charm!