From 75a4f3b03173babea22f05fe3bfca67224f03a25 Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Wed, 2 Mar 2016 19:48:08 +0200 Subject: [PATCH] filters: filter context payload A user reported that it's not possible to filter context/user. It's a reasonable request given that the user information has been moved to context recently. --- CHANGELOG.md | 3 +++ lib/airbrake-ruby/filters.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24786861..ec7f3c59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Airbrake Ruby Changelog ### master +* Started filtering the context payload + ([#55](https://github.com/airbrake/airbrake-ruby/pull/55)) + ### [v1.1.0][v1.1.0] (February 25, 2016) * Fixed bug in Ruby < 2.2, when trying to encode components while filtering diff --git a/lib/airbrake-ruby/filters.rb b/lib/airbrake-ruby/filters.rb index 0423e8f3..a608089e 100644 --- a/lib/airbrake-ruby/filters.rb +++ b/lib/airbrake-ruby/filters.rb @@ -5,6 +5,6 @@ module Filters ## # @return [Array] parts of a Notice's payload that can be modified # by various filters - FILTERABLE_KEYS = [:environment, :session, :params].freeze + FILTERABLE_KEYS = [:environment, :session, :params, :context].freeze end end