github.com/pkg/errors.New
third-partyThe 130th most-called third-party function by production calls. Called 9,773 times across 139 modules; 7,706 of those run outside tests and generated code.
5% in production calls vs 2026-W37 (8,115 → 7,706)
- prod calls
- 7,706
- non-test, non-generated
- all calls
- 9,773
- total callsites
- modules
- 139
- distinct callers
- in loop
- 7%
- of prod calls
- in tests
- 21%
- 2,063 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function80%A direct call to an exported package function, resolved by type.
- Package function (by syntax)20%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into New from notable Go projects. Open one on the map to see what else it hammers.
- Docker 844 11%
- Grafana 598 8%
- Dgraph 252 3%
- CockroachDB 248 3%
- Cortex 216 3%
where it's called
Callsites in the wild
12 representative callsites of 9,773, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
-
Mrs4s/MiraiGo @v0.0.0-20240226124653-54bdd873e3fe
in loop - in loop
-
Netflix/chaosmonkey @v0.0.0-20230120165304-3f8c23f85f2e
in loop - in loop
top callers
The modules that reach for it
The modules that call New most in this snapshot.
- github.com/hyperledger/fabric8389%
- github.com/opsgenie/opsgenie-go-sdk-v26797%
- github.com/bytebase/bytebase6707%
- github.com/moby/buildkit4064%
- github.com/cockroachdb/cockroach3954%
siblings
More from github.com/pkg/errors
The other most-called functions in this package. See all →