Created
September 25, 2010 04:20
-
-
Save rstacruz/596467 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # POST data | |
| # --------- | |
| api_key => ____, | |
| class => "NameError", #* | |
| message => "Unknown symbol", | |
| env => { | |
| HTTP_REFERER => '...', | |
| HTTP_HOST => '...', | |
| # etc. base64-encoded json | |
| }, | |
| request_body => { ... } # base64-encoded json | |
| sha1 => '.....' #* | |
| language => 'ruby', #* | |
| client_name => 'bullhorn-ruby', #* | |
| client_version => '0.0.5', #* | |
| url => 'http://mysite.com/product/1', #* | |
| backtrace => [ | |
| { 'file': '/Users/rsc/foo.rb', | |
| 'line': '64', | |
| 'context': [ | |
| { '63': ' def fail' }, | |
| { '64': ' return soandso' }, | |
| { '65': ' end' }, | |
| ] | |
| }, | |
| # ... | |
| ] #base64-encoded | |
| # Those marked with * are new/updated in APIv2. | |
| # Rationale: | |
| # | |
| # - 'sha1' has been updated to take the hash the exception classname, | |
| # instead of the message. This way, exceptions with messages like | |
| # "Can't update #<Main:8c1ba0..>" will not be filed separately. | |
| # | |
| # - 'url' should be posted explicitly (instead of inferring from | |
| # env['REQUEST_URI'] to account for other languages that have | |
| # different env var standards. | |
| # | |
| # - 'client_name' and 'client_version' should be posted so that the | |
| # user can be notified if their client versions are outdated. | |
| # | |
| # - 'class' should be included for obvious reasons (it wasn't before). | |
| # | |
| # - 'backtrace' has been updated to be more awesome. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment