-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add before_process and transform hooks #375
Conversation
Customers can define a list of handler that will be called before processing the report: handler = proc do |options| if some_calc(options) raise Rollbar::Ignore end end config.before_process << handler or config.before_process = handler The received options is a Hash object with this data: options = { :level => level, :scope => configuration.payload_options, :exception => exception, :message => message, :extra => extra }
With this change users can define a series of method that will receive: - scope - level - exception - message - payload Users can mutate the payload and do everything they want to do
Instead, swallow exceptions and log with 'error' level
103aba4
to
9e6ff51
Compare
9e6ff51
to
3dc4494
Compare
@jondeandres It seems that the
When I do the above, the output is:
|
@brianr the interface to access the scope is |
Forget it, it's a bug yes. I'm passing there |
5e50610
to
3428eb1
Compare
…52/filter-function
Add before_process and transform hooks
No description provided.