Overview of cockroachdb/errors
masterThe cockroachdb/errors library is a drop-in replacement for Go's standard errors package and github.com/pkg/errors. It is designed for distributed systems, providing network portability for error objects. This allows error identity (via errors.Is()) to be maintained even after errors have been encoded and sent across a network, supporting forward compatibility between different software versions.
Key capabilities include:
- Network Portability: Transparent protobuf encoding/decoding with forward compatibility.
- PII Protection: Native support for PII-free (Personally Identifiable Information) details and safe reporting.
- Sentry Integration: An opt-in mechanism to automatically format and strip PII from error reports sent to Sentry.io.
- Rich Metadata: Support for stack traces, hints, details, assertion failures, issue tracker links, and secondary causes.