honeybadger-io/honeybadger-ruby — pull request #5 by joshuap (2012-10-02 15:34:23+00:00)
Title: Deprecate user tracking feature and add context.

This adds a `Honeybadger.context` feature to set custom data that gets sent with each notice.

The importing thing to note is that `Thread.current[:honeybadger_context]` must get cleared at the end
of each request or Honeybadger session. I'm using the following strategies to ensure this:

Rack: Clear the context in an ensure block after the application is called.
Sinatra: Depends on Rack
Rails 3: Depends on Rack
Rails 2: 2.3.14 depends on rack, which is the lowest version of Rails I think we should support.
Rake: Rake is normally a one-off task, so it shouldn't care about context building up for a single thread. We'll still clear it after an error occurs.

One thing to note regarding Rails 2.3.14 is that the Cucumber integration tests are currently failing.. I have been able to verify that the problem is in the test code, and notices seem to be created. This is most likely an issue we inherited from Airbrake, because I ran the same features in their suite with the same results.

Please review carefully and merge if everything looks OK.