airbrake/airbrake — pull request #124 by zanker (2012-09-13 05:46:10+00:00)
Title: Add the ability to pass XML directly to send_to_airbrake

Currently you have to serialize the data, pass it to Resque, unserialize it, pass it to send_to_airbrake, which then immediately serializes it again as XML.

Letting people serialize it to XML ahead of time simplifies setting up async reporting and reduces the chance that another error will occur when trying to send a report about the original error.

The only real difference is that if you pass XML, it will now dump XML if Airbrake gets an HTTP error from sending the request, it will dump the XML rather than pretty printed.