Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.
/ airbrake-go Public archive
forked from tobi/airbrake-go

Go library to report errors to airbrake and compatible servers

Notifications You must be signed in to change notification settings

airbrake/airbrake-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

# NOTICE:

This repo is no longer maintained - please use https://github.com/airbrake/gobrake instead!





Config
======

set airbrake.Endpoint and airbrake.ApiKey globals

Methods
=======

airbrake.Error(err) reports an error

airbrake.RequestError(err, *http.Request) can be used to add more context if you are in a http context


You can also automatically have this library report panics, use this method:

airbrake.CapturePanic(*http.Request)


example:

  func serve(w http.ResponseWriter, r *http.Request) {
      defer airbrake.CapturePanic(r)
      
      [...]

      panic("Oh no :-(") // will be recorded by airbrake 

  }

About

Go library to report errors to airbrake and compatible servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%