Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tethik/sentrymiddleware

Another Sentry middleware for the Echo framework
https://github.com/tethik/sentrymiddleware

echo-framework golang

Last synced: 28 days ago
JSON representation

Another Sentry middleware for the Echo framework

Awesome Lists containing this project

README

        

# echo-sentry-middleware
Another Sentry middleware for the Echo framework

## Usage
```go

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"))
}
```

## Todo
1. Set DSN via this package (and use own client)
1. Tests
2. Better example.
3. Versioning.