Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tethik/sentrymiddleware
- Owner: Tethik
- License: mit
- Created: 2018-06-10T23:07:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-10T23:18:48.000Z (over 6 years ago)
- Last Synced: 2024-11-10T06:39:20.666Z (2 months ago)
- Topics: echo-framework, golang
- Language: Go
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# echo-sentry-middleware
Another Sentry middleware for the Echo framework## Usage
```gofunc 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.