We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using version 3.5.2 of gem with ruby on rails and configure an initializer in the following way (config/initializers/rollbar.rb).
config/initializers/rollbar.rb
handler = proc do |options| exception = options[:exception] message = exception.message.to_s raise Rollbar::Ignore if message.include?('.env') || message.include?('No route matches [POST] "/"') || message.include?('favicon.ico') end Rollbar.configure do |config| config.access_token = ENV['ROLLBAR_ACCESS_TOKEN'] config.enabled = Rails.env.production? || Rails.env.staging? config.js_enabled = false config.framework = 'Rails' config.before_process << handler end
Expected behavior: You will not be notified of exceptions that contain these messages.
Actual behavior: I continue receiving the notifications.
Also use the option next 'ignored' if ... without success.
next 'ignored' if ...
Official Documentation
The text was updated successfully, but these errors were encountered:
SDK-373 Ignoring Items not working
Sorry, something went wrong.
Not the same, but I am doing a copy of this comment and it seems to work fine:
#621 (comment)
No branches or pull requests
I am using version 3.5.2 of gem with ruby on rails and configure an initializer in the following way (
config/initializers/rollbar.rb
).Expected behavior: You will not be notified of exceptions that contain these messages.
Actual behavior: I continue receiving the notifications.
Also use the option
next 'ignored' if ...
without success.Official Documentation
The text was updated successfully, but these errors were encountered: