import "gopkg.in/airbrake/gobrake.v1"
airbrake = gobrake.NewNotifier(projectId, apiKey)
airbrake.SetContext("environment", "production")
if err := processRequest(req); err != nil {
go airbrake.Notify(err, req)
}
vinayvinay / gobrake Goto Github PK
View Code? Open in Web Editor NEWThis project forked from airbrake/gobrake
Airbrake notifier for Golang
Home Page: http://godoc.org/gopkg.in/airbrake/gobrake.v1
License: BSD 3-Clause "New" or "Revised" License