google.golang.org/grpc/peer.FromContext
third-partyThe 4949th most-called third-party function by production calls. Called 140 times across 47 modules; 119 of those run outside tests and generated code.
- prod calls
- 119
- non-test, non-generated
- all calls
- 140
- total callsites
- modules
- 47
- distinct callers
- in loop
- <1%
- of prod calls
- in tests
- 15%
- 21 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 function84%A direct call to an exported package function, resolved by type.
- Package function (by syntax)16%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into FromContext from notable Go projects. Open one on the map to see what else it hammers.
where it's called
Callsites in the wild
12 representative callsites of 140, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
google.golang.org/grpc @v1.83.0
peer/peer_test.go:92
in loop test -
google.golang.org/grpc @v1.83.0
test/insecure_creds_test.go:98
in loop test - in loop test
-
google.golang.org/grpc @v1.83.0
balancer/leastrequest/leastrequest_test.go:307
in loop test - in loop test
-
google.golang.org/grpc @v1.83.0
balancer/leastrequest/leastrequest_test.go:434
in loop test - in loop test
-
google.golang.org/grpc @v1.83.0
balancer/leastrequest/leastrequest_test.go:458
in loop test - in loop test
-
google.golang.org/grpc @v1.83.0
balancer/leastrequest/leastrequest_test.go:658
in loop test - in loop test
top callers
The modules that reach for it
The modules that call FromContext most in this snapshot.
- google.golang.org/grpc1712%
- github.com/grpc/grpc-go1611%
- github.com/spiffe/spire86%
- github.com/istio/istio75%
- istio.io/istio75%