Documentation ¶
Index ¶
- func DELETE(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
- func Error(ctx context.Context, err error)
- func GET(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
- func MakeSpan(ctx context.Context, skip int) *sentry.Span
- func MakeTransaction(ctx context.Context, name string, opts ...sentry.SpanOption) (context.Context, *sentry.Span, *sentry.Hub)
- func PATCH(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
- func POST(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
- func PUT(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
- func RecoverWithContext(ctx context.Context, transaction *sentry.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DELETE ¶
func DELETE(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
DELETE wrapper to include sentrySpanTracer as last middleware.
func GET ¶
func GET(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
GET wrapper to include sentrySpanTracer as last middleware.
func MakeTransaction ¶
func MakeTransaction(ctx context.Context, name string, opts ...sentry.SpanOption) (context.Context, *sentry.Span, *sentry.Hub)
MakeTransaction creates new Sentry transaction.
func PATCH ¶
func PATCH(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
PATCH wrapper to include sentrySpanTracer as last middleware.
func POST ¶
func POST(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
POST wrapper to include sentrySpanTracer as last middleware.
func PUT ¶
func PUT(group *gin.RouterGroup, relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes
PUT wrapper to include sentrySpanTracer as last middleware.
func RecoverWithContext ¶
RecoverWithContext recovers from panic and sends it to Sentry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.