github.com/prometheus/client_model/go.MetricFamily.GetType
third-partyThe 6283rd most-called third-party method by production calls. Called 152 times across 29 modules; 97 of those run outside tests and generated code.
15% in production calls vs 2026-W39 (84 → 97)
All of github.com/prometheus/client_model/go → Docs on pkg.go.dev ↗
- prod calls
- 97
- non-test, non-generated
- all calls
- 152
- total callsites
- modules
- 29
- distinct callers
- in loop
- 41%
- of prod calls
- in tests
- 36%
- 55 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 →
- Concrete method100%A method on a value whose type is known exactly.
who calls this
Notable callers
Production calls into MetricFamily.GetType from notable Go projects. Open one on the map to see what else it hammers.
- Prometheus 41 42%
- Istio 12 12%
- Grafana 7 7%
- Kubernetes 6 6%
- InfluxDB 4 4%
where it's called
Callsites in the wild
12 representative callsites of 152, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
-
istio/istio @v0.0.0-20260928115056-32ddacd7a1cb
in loop - in loop
- in loop
top callers
The modules that reach for it
The modules that call MetricFamily.GetType most in this snapshot.
- github.com/prometheus/common2214%
- github.com/istio/istio2013%
- istio.io/istio2013%
- github.com/prometheus/client_golang1812%
- github.com/kubernetes/kubernetes96%
siblings
More from github.com/prometheus/client_model/go
The other most-called members in this package. See all →