https://github.com/rotisserie/eris is an alternative to https://github.com/pkg/errors and https://github.com/golang/xerrors, should work out of the box with Sentry. They have an example app to report errors with Sentry.