Currently when there is a barrier or a secondary error, only the safe detail payloads (if any) of the hidden error are included in Sentry reports. If the error is a simple Go error, nothing is included.
We probably want at least the type and, if the object that's captured is an error object, expand its safe details using errors.Sprint + redact.Redact.
Found by @yuzefovich in https://github.com/cockroachdb/cockroach/issues/69356
Currently when there is a barrier or a secondary error, only the safe detail payloads (if any) of the hidden error are included in Sentry reports. If the error is a simple Go error, nothing is included.
We probably want at least the type and, if the object that's captured is an
error
object, expand its safe details usingerrors.Sprint
+redact.Redact
.