Skip to content
callcount

tailscale.com/util/clientmetric.Metric.Add

third-party

The 1996th most-called third-party method by production calls. Called 310 times across 1 modules; 306 of those run outside tests and generated code.

All of tailscale.com/util/clientmetric → Docs on pkg.go.dev ↗

prod calls
306
non-test, non-generated
all calls
310
total callsites
modules
1
distinct callers
in loop
23%
of prod calls
in tests
1%
4 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.

where it's called

Callsites in the wild

12 representative callsites of 310, prioritizing in-loop and non-test usage. We link to source, never display it.

Metric.Add · 12 of 310 callsites
  • tailscale.com @v1.102.2

    ipn/ipnlocal/prefs_metrics.go:71

    in loop
  • tailscale.com @v1.102.2

    ipn/ipnlocal/prefs_metrics.go:73

    in loop
  • tailscale.com @v1.102.2

    net/routecheck/probe.go:96

    in loop
  • tailscale.com @v1.102.2

    net/routecheck/probe.go:128

    in loop
  • tailscale.com @v1.102.2

    net/routecheck/probe.go:133

    in loop
  • tailscale.com @v1.102.2

    net/routecheck/probe.go:137

    in loop
  • tailscale.com @v1.102.2

    net/routecheck/probe.go:147

    in loop
  • tailscale.com @v1.102.2

    ssh/tailssh/tailssh.go:382

    in loop
  • tailscale.com @v1.102.2

    ssh/tailssh/tailssh.go:392

    in loop
  • tailscale.com @v1.102.2

    net/portmapper/upnp.go:397

    in loop
  • tailscale.com @v1.102.2

    ssh/tailssh/tailssh.go:407

    in loop
  • tailscale.com @v1.102.2

    ssh/tailssh/tailssh.go:413

    in loop

top callers

The modules that reach for it

The modules that call Metric.Add most in this snapshot.

  • tailscale.com310100%

siblings

More from tailscale.com/util/clientmetric

The other most-called members in this package. See all →