Error handler integration for Airbrake / Errbit.
go get emperror.dev/handler/airbrake
package main
import (
"github.com/airbrake/gobrake"
"emperror.dev/handler/airbrake"
)
func main() {
projectID := int64(1)
projectKey := "key"
handler := airbrake.New(projectID, projectKey)
defer handler.Close() // Make sure to close the handler to flush all error reporting in progress
}
When all coding and testing is done, please run the test suite:
$ make check
# Set up the environment
cp docker-compose.override.yml.dist docker-compose.override.yml
cp .env.test.dist .env.test
docker-compose up -d
docker-compose run --rm errbit rake db:seed
source .env.test
# Run tests
make test
# Cleanup
docker-compose down
The MIT License (MIT). Please see License File for more information.