airbrake-python icon indicating copy to clipboard operation
airbrake-python copied to clipboard

Add filters

Open zachgoldstein opened this issue 8 years ago • 1 comments

In airbrake-ruby, we have https://github.com/airbrake/airbrake-ruby#airbrakeadd_filter. It would be nice to provide a flexible way for users to similarly filter out sensitive information.

zachgoldstein avatar Feb 22 '17 14:02 zachgoldstein

There's a couple different types of filters to build here:

  • White/black list keys, and replace their contents with [Filtered].
  • https://github.com/airbrake/airbrake-ruby#airbrakeadd_filter where we add a user-supplied callback that does more complex things.
  • Class-based filters, where you pass in an instance of the filter.

Each one of these is probably a PR, and I think the order above makes sense from simple to more complicated.

zachgoldstein avatar Mar 02 '17 18:03 zachgoldstein