cockroachdb / errors

Go error library with error portability over the network
Apache License 2.0
2.07k stars 66 forks source link

Expose more details of payloads in Sentry reports #85

Closed knz closed 2 years ago

knz commented 3 years ago

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 using errors.Sprint + redact.Redact.

knz commented 2 years ago

Fixed in #94