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

Method GetLicenseByID

coderd/database/dbmetrics/querymetrics.go:2077–2083  ·  view source on GitHub ↗
(ctx context.Context, id int32)

Source from the content-addressed store, hash-verified

2075}
2076
2077func (m queryMetricsStore) GetLicenseByID(ctx context.Context, id int32) (database.License, error) {
2078 start := time.Now()
2079 r0, r1 := m.s.GetLicenseByID(ctx, id)
2080 m.queryLatencies.WithLabelValues("GetLicenseByID").Observe(time.Since(start).Seconds())
2081 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetLicenseByID").Inc()
2082 return r0, r1
2083}
2084
2085func (m queryMetricsStore) GetLicenses(ctx context.Context) ([]database.License, error) {
2086 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetLicenseByIDMethod · 0.65

Tested by

no test coverage detected