This scripts fetches data errors from airbrake, and permits you to filter them by arbitrary word included in paths of backtrace, or even in git-blame.
Open your airbrake profile page, copy the API token and paste inside .env
file.
Insert the api key inside .env
file.
Write the PROJECT_ID that you are monitoring in the appropriate place.
Optionally, insert the path to your git repo, so this scripts can fetch git-blame info on them.
Open list-groups.rb
in your editor and see what it does.
Run list-groups.rb
from your terminal.
It will fetch data from airbrake, parse them, and open a pry's terminal where you can query'n'hack things.
In the variable groups
you will have the first 100 error groups from airbrake.
In my_fault
, there is a filtered list.
- Fetch info from more then 1 project.
- Create a separate script to update the cached json file.
- Create a cronjob to call the script that update cached json.
- Notify user when new errors that match a criteria where found,