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.

1 Like

Thanks @kamilogorek, works like a charm!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.