log/slog.New
standard libraryThe 1342nd most-called standard-library function by production calls. Called 1,145 times across 122 modules; 458 of those run outside tests and generated code.
- prod calls
- 458
- non-test, non-generated
- all calls
- 1,145
- total callsites
- modules
- 122
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 60%
- 687 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.
- Grafana 29 6%
- Prometheus 17 4%
- Cilium 14 3%
- Helm 4 <1%
- Kubernetes 4 <1%
where it's called
Callsites in the wild
12 representative callsites of 1,145, prioritizing in-loop and non-test usage. We link to source, never display it.
-
miekg/dns @v0.6.90
cmd/atomdns/handlers/global/setup.go:35
in loop - in loop
-
log/v2 @v2.0.0
logger_121_test.go:273
in loop test - in loop test
- in loop test
- in loop test
- in loop test
- in loop test
- in loop test
- in loop test
- in loop test
-
lmittmann/tint @v1.2.0
in loop test
top callers
The modules that reach for it
The modules that call New most in this snapshot.
- github.com/certimate-go/certimate21519%
- github.com/cilium/cilium1089%
- github.com/esengine/DeepSeek-Reasonix1049%
- github.com/grafana/alloy797%
- github.com/gotenberg/gotenberg/v8525%
siblings
More from log/slog
The other most-called functions in this package. See all →