mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 16:01:16 +00:00
15 lines
315 B
Go
15 lines
315 B
Go
package jobs
|
|
|
|
import (
|
|
"github.com/getsentry/sentry-go"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
func CaptureError(userID, emailID uuid.UUID, err error) {
|
|
sentry.WithScope(func(scope *sentry.Scope) {
|
|
scope.SetTag("user_id", userID.String())
|
|
scope.SetTag("email_id", emailID.String())
|
|
sentry.CaptureException(err)
|
|
})
|
|
}
|