Rack

Install Exceptional in your Rack app

  1. Install the exceptional gem
    $ gem install exceptional

  2. Install the json gem of your choice (choices are: json, json_pure, yajl-ruby, json-jruby)
    $ gem install json

  3. Configure your config.ru file

     require 'exceptional'
     use Rack::Exceptional, API_KEY
    

    You will find the API_KEY in the apps settings screen within Exceptional.

  4. Ensure Exceptional for Rack is being loaded
    Check log/exceptional.log log file



Example config.ru

require 'exceptional'
use Rack::Exceptional, API_KEY
run lambda { |env| [200, {'Content-Type'=>'text/plain'}, "Hello World"]}