Skip to content

Instantly share code, notes, and snippets.

@mmcdaris
Last active November 2, 2017 22:13
Show Gist options
  • Save mmcdaris/d3d6c945ad68d64f6b37b9de66ba1f98 to your computer and use it in GitHub Desktop.
Save mmcdaris/d3d6c945ad68d64f6b37b9de66ba1f98 to your computer and use it in GitHub Desktop.
Example Airbrake error for posting
{
"errors": [
{
"type": "AirbrakeTestError",
"message": "I am an example error",
"backtrace": [
{
"file": "app/models/avocado.rb",
"line": 10,
"function": "make_guacamole",
"code": {
"1": "def make_guacamole",
"2": " mash_up_avocados"
}
}
]
},
{
"type": "error2",
"message": "message2",
"backtrace": [
{
"file": "backtrace file",
"line": 10,
"function": "backtrace function"
}
]
}
],
"context": {
"notifier": {
"name": "notifier name",
"version": "notifier version",
"url": "notifier url"
},
"os": "Linux 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64",
"hostname": "production-rails-server-1",
"language": "Ruby 2.1.1",
"environment": "production",
"severity": "error",
"version": "1.1.1",
"url:": "http://some-site.com/example",
"rootDirectory": "/home/app-root-directory",
"user": {
"id": "12345",
"name": "root",
"email": "[email protected]"
}
},
"environment": {
"PORT": "443",
"CODE_NAME": "gorilla"
},
"session": {
"basketId": "123",
"userId": "456"
},
"params": {
"page": "3",
"sort": "name",
"direction": "asc"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment