Another Sentry middleware for the Echo framework
func main() {
// Echo instance
e := echo.New()
dsn, found := os.LookupEnv("SENTRY_RAVEN_DSN")
if found {
raven.SetDSN(dsn)
e.Use(sentrymiddleware.SentryErrorRecover())
}
// Start server
e.Logger.Fatal(e.Start(":1323"))
}- Set DSN via this package (and use own client)
- Tests
- Better example.
- Versioning.