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

Method GetPrebuildMetrics

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

Source from the content-addressed store, hash-verified

2379}
2380
2381func (m queryMetricsStore) GetPrebuildMetrics(ctx context.Context) ([]database.GetPrebuildMetricsRow, error) {
2382 start := time.Now()
2383 r0, r1 := m.s.GetPrebuildMetrics(ctx)
2384 m.queryLatencies.WithLabelValues("GetPrebuildMetrics").Observe(time.Since(start).Seconds())
2385 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetPrebuildMetrics").Inc()
2386 return r0, r1
2387}
2388
2389func (m queryMetricsStore) GetPrebuildsSettings(ctx context.Context) (string, error) {
2390 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetPrebuildMetricsMethod · 0.65

Tested by

no test coverage detected