Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

bradleyg/go-sentroni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 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