0.0
The project is in a healthy, maintained state
Rails exception logger
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 7.1
 Project Readme

ActiveError

One of the fundemental tools needed to take your Rails app to production is a way to track errors that are triggered. Unfortunately, theres no free, easy, open source way to track them for small or medium apps. Honeybadger, Sentry, and AppSignal are great, but they are are closed source. With Sentry looking at using your data as training data(link) there should be an easy open source alternative where you control the data.

ActiveError hooks into the error reporting api baked directly into Rails. These third party error loggers also try to make their own fancy backtrace and debugging view. But the one Rails developers are most comfortable with is the one baked into Rails that we use everyday in development. So with ActiveError, when an error gets raised it's captured and stored in the database (we attempt to group the same error together as Instances to reduce noise) and then we recreate the error and display it using the built in debug view from Rails. Once you've resolved the error you can click "Resolve" which will destroy the record.

screenshot 1 screenshot 2

Installation

Add this line to your application's Gemfile:

gem "activeerror"

And then execute:

$ bundle

Or install it yourself as:

$ gem install activeerror

And then install migrations:

bin/rails generate active_error:install
bin/rails db:migrate

This also mounts a route in your routes file to view the errors at /errors.

Config

You can supply the string version of an error class to ignored to ignore classes of errors.

ActiveError.ignored = ["NoMethodError"]

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rails test to run the unit tests.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, execute bin/publish (major|minor|patch) which will update the version number in version.rb, create a git tag for the version, push git commits and tags, and push the .gem file to GitHub.

Contributing

Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.