MCPcopy Index your code
hub / github.com/coder/coder / GetAllTailnetPeers

Method GetAllTailnetPeers

coderd/database/dbmetrics/querymetrics.go:1213–1219  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1211}
1212
1213func (m queryMetricsStore) GetAllTailnetPeers(ctx context.Context) ([]database.TailnetPeer, error) {
1214 start := time.Now()
1215 r0, r1 := m.s.GetAllTailnetPeers(ctx)
1216 m.queryLatencies.WithLabelValues("GetAllTailnetPeers").Observe(time.Since(start).Seconds())
1217 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetAllTailnetPeers").Inc()
1218 return r0, r1
1219}
1220
1221func (m queryMetricsStore) GetAllTailnetTunnels(ctx context.Context) ([]database.TailnetTunnel, error) {
1222 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetAllTailnetPeersMethod · 0.65

Tested by

no test coverage detected