Sentry
Middleware to integrate with sentry crash reporting.
Install / Use
/learn @gin-contrib/SentryREADME
sentry
The
sentrymiddleware is no longer maintained and was superseded by thesentry-goSDK. Learn more about the project on GitHub and check out the new gin middleware.
Example
See the example
package main
import (
"github.com/getsentry/raven-go"
"github.com/gin-contrib/sentry"
"github.com/gin-gonic/gin"
)
func init() {
raven.SetDSN("https://<key>:<secret>@app.getsentry.com/<project>")
}
func main() {
r := gin.Default()
r.Use(sentry.Recovery(raven.DefaultClient, false))
// only send crash reporting
// r.Use(sentry.Recovery(raven.DefaultClient, true))
r.Run(":8080")
}
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
