Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
Missing piece in Sentry-raven to Sentry-ruby guide

I'm in the middle of migrating our existing application from Sentry-raven to Sentry-ruby. There appears to be a missing piece in the migration guide, however.

What do I do with #sanitize_fields?

The old config looked like this:

 Raven.configure do |config|
   config.sanitize_fields = filter_parameters
 end 

However, #sanitize_fields was removed and I don't see anywhere where the functionality was replaced.

We used this to ensure that passwords and confirmations were not sent to Sentry (bad day), so I need something to do that in using sentry-ruby.

Any help would be greatly appreciated.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Great suggestion from Sampat. To save future readers having to go through all the comments, the summary is:

  1. If you're using Rails you can use this snippet:
  filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters)

  config.before_send = lambda do |event, hint|
    filter.filter(event.to_hash)
  end
  1. Alternatively use this gem, developed to replace the previous sanitization functionality
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!