github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/utils/sentry.go (about) 1 package utils 2 3 import "github.com/projecteru2/core/log" 4 5 // SentryGo wraps goroutine spawn to capture panic 6 func SentryGo(f func()) { 7 go func() { 8 defer log.SentryDefer() 9 f() 10 }() 11 }