Discover Packages
github.com/Tethik/sentrymiddleware
package
module
Version:
v0.0.0-...-bfb8cd0
Opens a new window with list of versions in this module.
Published: Jun 10, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
echo-sentry-middleware
Another Sentry middleware for the Echo framework
Usage
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
Set DSN via this package (and use own client)
Tests
Better example.
Versioning.
Expand ▾
Collapse ▴
Documentation
¶
SentryErrorRecover captures the error to forward to sentry
then passed the error up to the next recover error handler
Source Files
¶
Click to show internal directories.
Click to hide internal directories.