Radar is an ultra-configurable exception reporting library for Ruby which lets you report errors in your applications any way you want. Read about the rationale behind Radar.

Brief Feature Breakdown

  • Reporters allow Radar to report anywhere: a file, a server, email, etc.
  • Data extensions enable you to add additional contextual data to exceptions
  • Matchers are able to filter which exceptions are reported
  • Filters remove sensitive data from exceptions
  • Run multiple Radar "applications" side-by-side to catch and report different exceptions to different places.
  • Integration with 3rd party software: Rack, Rails 2, Rails 3, and Sinatra.
  • Drop-in replacement and integration with Hoptoad

Quick Start

gem install radar

Then just begin logging exceptions in your application:

r = Radar::Application.new(:my_application)
r.reporter :file

You can also tell Radar to attach itself to Ruby's at_exit hook so it can catch application-crashing exceptions automatically:


Both of the above methods can be used together, of course.

Since the above enabled the FileReporter for the application, reported exceptions will be stored in a text file on the local filesystem, by default at ~/.radar/errors/my_application. Sample contents of the exception data generated by default is shown below. Note that you can add your own custom data to this output by using data extensions (covered in the user guide).

      "message":"This was an example exception",
         "test.rb:28:in `<main>'"

Also, instead of assigning the application to a variable, you may also look it up later anywhere in your application:


# Or the shorthand:

Documentation and User Guide

For more details on configuring Radar, please view the user guide, which is a detailed overview of Radar and all of its features.

Reporting Bugs and Requesting Features

Please use the issues section to report bugs and request features. This section is also used as the TODO area for the Radar gem.


To hack on Radar, you'll need bundler which can be installed with a simple gem install bundler. Then, do the following:

bundle install

This will run the test suite, which should come back all green! Then you're good to go.

The general steps to contributing a new change are:

  1. Fork the repository
  2. Make your changes, writing tests if necessary
  3. Open an issue with the feature and a link to your fork or a gist with a patch.
  4. Wait patiently, for I am but one man.