Skip to content
Error handler integration for Airbrake / Errbit
Go Makefile Ruby Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
etc/errbit
.editorconfig
.env.test.dist
.gitignore
.golangci.yml
CHANGELOG.md
LICENSE
Makefile
README.md
docker-compose.override.yml.dist
docker-compose.yml
go.mod
go.sum
handler.go
handler_integration_test.go
handler_test.go

README.md

Airbrake / Errbit handler

CircleCI Go Report Card GolangCI GoDoc

Error handler integration for Airbrake / Errbit.

Installation

go get handler.emperror.dev/airbrake

Usage

package main

import (
	"github.com/airbrake/gobrake"

	"handler.emperror.dev/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
}

Development

When all coding and testing is done, please run the test suite:

$ make check

Running integration tests

# 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

License

The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.