net/http.NewRequestWithContext
standard libraryThe 232nd most-called standard-library function by production calls. Called 6,567 times across 358 modules; 4,273 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (4,216 → 4,273)
- prod calls
- 4,273
- non-test, non-generated
- all calls
- 6,567
- total callsites
- modules
- 358
- distinct callers
- in loop
- 5%
- of prod calls
- in tests
- 26%
- 1,734 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 NewRequestWithContext from notable Go projects. Open one on the map to see what else it hammers.
- Tailscale 134 3%
- Kubernetes 50 1%
- Grafana 48 1%
- VictoriaMetrics 31 <1%
- KEDA 30 <1%
where it's called
Callsites in the wild
12 representative callsites of 6,567, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
charm.land/catwalk @v0.52.48
cmd/cortecs/main.go:87
in loop - in loop
- in loop
-
gitea.dev @v1.27.3
services/migrations/github.go:378
in loop - in loop
-
anchore/syft @v1.52.0
syft/pkg/cataloger/internal/cpegenerate/dictionary/index-generator/nvd_api_client.go:228 ↗
in loop - in loop
- in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call NewRequestWithContext most in this snapshot.
- github.com/akamai/AkamaiOPEN-edgegrid-golang/v1375612%
- github.com/elastic/go-elasticsearch/v85609%
- github.com/dapr/dapr4226%
- github.com/infiniflow/ragflow2594%
- github.com/crowdsecurity/crowdsec1903%
siblings
More from net/http
The other most-called functions in this package. See all →