Hello!
I’m using Go sentry 0.6.1 to report issues from my Go app. I use wrapper function to log error messages because I call it from many places and I need to offer human friendly error too:
func LogFatalErrorAndExit(message string) {
log.Printf(message)
sentry.CaptureException(errors.New(message))
sentry.Flush(time.Second * 5)
os.Exit(1)
}
Unfortunately, Sentry aggregates all these errors with very different messages into single issue instead of multiple ones. I think it does aggregation according error type and function name:
*errors.fundamental *main in LogFatalErrorAndExit
What is the best option to disable such aggregation for cases with wrapper function? How can I override “fundamental” type of error?