Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry.init beforeSend option is not being executed #12

Closed
iteratelance opened this issue Aug 18, 2020 · 1 comment
Closed

Sentry.init beforeSend option is not being executed #12

iteratelance opened this issue Aug 18, 2020 · 1 comment

Comments

@iteratelance
Copy link

We have an app where we need the ability to manipulate payloads before being sent to sentry. It doesn't appear that the beforeSend .init option is respected when instantiating via forRootAsync

  Sentry.init({
    dsn: config.get('SENTRY_DSN'),
    environment: config.get('NODE_ENV'),
    beforeSend(event) {
      if (event.secret_info)) {
        delete event.secret_info;
      }
      return event;
    }
  });
@ntegral
Copy link
Owner

ntegral commented Jan 15, 2021

This has been updated in the latest version

@ntegral ntegral closed this as completed Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants