log.New
standard libraryThe 994th most-called standard-library function by production calls. Called 1,087 times across 340 modules; 655 of those run outside tests and generated code.
- prod calls
- 655
- non-test, non-generated
- all calls
- 1,087
- total callsites
- modules
- 340
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 39%
- 424 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 function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into New from notable Go projects. Open one on the map to see what else it hammers.
- HashiCorp 18 3%
- InfluxDB 17 3%
- gRPC 14 2%
- Kubernetes 10 2%
- CockroachDB 8 1%
where it's called
Callsites in the wild
12 representative callsites of 1,087, prioritizing in-loop and non-test usage. We link to source, never display it.
-
go/logging @v1.19.0
logging.go:362
in loop - in loop
-
log/v2 @v2.0.0
stdlog_test.go:116
in loop test - in loop test
- in loop test
- in loop test
-
gofiber/fiber/v2 @v2.52.14
in loop test - in loop test
- in loop test
- in loop test
- in loop test
-
siderolabs/talos @v1.13.8
internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_controller_test.go:170 ↗
in loop test
top callers
The modules that reach for it
The modules that call New most in this snapshot.
- github.com/golang/dep474%
- github.com/gastownhall/gastown394%
- github.com/steveyegge/gastown394%
- github.com/slack-go/slack212%
- github.com/larksuite/cli192%
siblings
More from log
The other most-called functions in this package. See all →