# cockroachdb/errors

Go error library with error portability over the network

Repository: https://github.com/cockroachdb/errors
Canonical: https://ross.abutalabs.com/products/cockroachdb-errors
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2026-07-29T16:53:51+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 57, longevity 100
- inputs: {"age_days": 2642, "days_push": 35, "days_rel": 76, "gap_med": 205.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2454, forks 74 (observed 2026-08-28T04:06:53.085092+00:00)

## What it is
A Go error handling library that is a drop-in replacement for the standard errors package and github.com/pkg/errors, adding network-portable error objects for distributed systems. It supports PII-free error details and optional automatic Sentry.io error reporting.

## Use cases
- serialize errors across RPC boundaries in distributed systems
- replace github.com/pkg/errors with richer error wrapping
- capture stack traces efficiently when wrapping errors
- report errors to Sentry with PII automatically stripped
- maintain error compatibility across mixed-version services
- use errors.Is and errors.As with enhanced error types

## When to choose
- building distributed Go systems where errors must survive network transport
- you need structured, PII-safe error details for telemetry
- you want a superset of pkg/errors and Go 1.13 errors APIs

## When to avoid
- small single-process apps where the standard library errors package suffices
- non-Go projects
- you need zero external dependencies

## Facets
- artifact type: library
- maturity: active
- function: error-handling, serialization, logging
- domain: developer-tools, microservices, backend
- platform: go, cross-platform
- tags: error-wrapping, network-portability, pii-redaction, sentry-reporting, drop-in-replacement

## Member repositories
- cockroachdb/errors (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.085092+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:30:07.277997+00:00, confidence not recorded.
  - readme: https://github.com/cockroachdb/errors (fetched 2026-08-28T04:06:53.085092+00:00, sha 3851e33cf1e7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
