(ctx context.Context, id int32)
| 2075 | } |
| 2076 | |
| 2077 | func (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 | |
| 2085 | func (m queryMetricsStore) GetLicenses(ctx context.Context) ([]database.License, error) { |
| 2086 | start := time.Now() |
nothing calls this directly
no test coverage detected