airbrake/airbrake-ruby

Multiple `Airbrake.configure` calls append the same filters to the filter chain

Closed this issue · 0 comments

When you call Airbrake.configure multiple times the same filters get appended to the filter chain:

Airbrake.configure { ... }
Airbrake.configure { ... }

@filter_chain #=> [
  Airbrake::Filters::SystemExitFilter,
  Airbrake::Filters::GemRootFilter,
  Airbrake::Filters::ContextFilter,
  Airbrake::Filters::GitLastCheckoutFilter,
  Airbrake::Filters::GitRevisionFilter,
  Airbrake::Filters::GitRepositoryFilter,
  Airbrake::Filters::GitLastCheckoutFilter,
  Airbrake::Filters::GitRevisionFilter,
  Airbrake::Filters::GitRepositoryFilter,
  Airbrake::Filters::RootDirectoryFilter,
  Airbrake::Filters::RootDirectoryFilter,
  Airbrake::Filters::ExceptionAttributesFilter,
  Airbrake::Filters::KeysBlacklist
]