dbtlr / php-airbrake

A PHP 5.3 library for sending errors to the Airbrake.io service.
http://airbrake.io
MIT License
121 stars 44 forks source link

Adding the ability to add data to the parameters passed to Airbrake #8

Closed serenecloud closed 12 years ago

serenecloud commented 12 years ago

Hi,

I only started with Airbrake today so I may be on the wrong track with this, but in our project we are sending emails from a queue and want to report when they fail to send.

We need to be able to see the email sent and the error returned so we can diagnose and fix, but I didn't see any way to put this data into the call to Airbrake without modifying the library. I've added the ability to supply extraParameters when you call $notice->load() and have them get to Airbrake in their own airbrake_extras parameter.

If I'm on the wrong track let me know and I can correct.

Cheers, Ben

dbtlr commented 12 years ago

Looks like some nice added functionality. Thanks for the Pull request! :)