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

About 'sanitize_fields' config options #2340

Closed
HungNgKh opened this issue Jul 10, 2024 · 1 comment
Closed

About 'sanitize_fields' config options #2340

HungNgKh opened this issue Jul 10, 2024 · 1 comment
Assignees
Labels

Comments

@HungNgKh
Copy link

My old Rails application has sentry-raven configured using these options.

config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)

After migrating from raven to sentry. The option isn't supported anymore, and I ran into this error.

/app/config/initializers/sentry.rb:7:in block in <main>': undefined method sanitize_fields=' for #Sentry::Configuration:0x0000ffffa96744c8

Do we have an alternative way to sanitize sensitive parameters?

@HungNgKh
Copy link
Author

https://docs.sentry.io/platforms/ruby/guides/rails/configuration/filtering/

I just looked up the document above
based on this issue
#1140

Look like it solved the problem 🎉 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants