Skip to content

gyroscope-innovations/go-sentroni

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

sentroni

-- import "github.com/bradleyg/go-sentroni"

Recovery is a Negroni middleware that recovers from any panics, writes a 500 and passes the error to Sentry.

Usage:

n := negroni.New()
n.Use(sentroni.NewRecovery(sentryDsn))
n.Run()

Usage

func NewRecovery

func NewRecovery(dsn string) *recovery

NewRecovery returns a *http.Handler interface. Pass your Sentry dsn as an argument.

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%