...

Text file src/github.com/gin-gonic/contrib/sentry/README.md

Documentation: github.com/gin-gonic/contrib/sentry

     1# sentry
     2
     3Middleware to integrate with [sentry](https://getsentry.com/) crash reporting.  Middleware version of `raven.RecoveryHandler()`.
     4
     5## EOL-warning
     6
     7**This package has been abandoned on 2017-01-13. Please use [gin-contrib/sentry](https://github.com/gin-contrib/sentry) instead.**
     8
     9## Example
    10```go
    11package main
    12
    13import (
    14  "github.com/getsentry/raven-go"
    15  "github.com/gin-gonic/contrib/sentry"
    16  "github.com/gin-gonic/gin"
    17)
    18
    19func init() {
    20  raven.SetDSN("https://<key>:<secret>@app.getsentry.com/<project>")
    21}
    22
    23func main() {
    24  r := gin.Default()
    25  r.Use(sentry.Recovery(raven.DefaultClient, false))
    26  // ...
    27  r.Run(":8080")
    28}
    29```

View as plain text