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

Method GetLicenses

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

Source from the content-addressed store, hash-verified

2083}
2084
2085func (m queryMetricsStore) GetLicenses(ctx context.Context) ([]database.License, error) {
2086 start := time.Now()
2087 r0, r1 := m.s.GetLicenses(ctx)
2088 m.queryLatencies.WithLabelValues("GetLicenses").Observe(time.Since(start).Seconds())
2089 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetLicenses").Inc()
2090 return r0, r1
2091}
2092
2093func (m queryMetricsStore) GetLogoURL(ctx context.Context) (string, error) {
2094 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetLicensesMethod · 0.65

Tested by

no test coverage detected