cockroachdb / errors

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

Best way to allow strings in error object in reports #38

Closed mikesun closed 3 years ago

mikesun commented 4 years ago

https://github.com/cockroachdb/errors#providing-pii-free-details

by default, strings included in an error object are considered to be PII-unsafe, and are stripped out when building a Sentry report.

What would be the best/easiest way to allow error object strings not to be stripped out from Sentry reports? When I use this package to wrap errors from other packages that don't include stack traces, I'd like to have the error strings be included in Sentry reports.

knz commented 4 years ago

The question you'd need to ask yourself is, how do you know for sure that these "other packages" don't include PII-unsafe information?

knz commented 3 years ago

we now support the redact features inside error objects.