(ctx context.Context, id uuid.UUID)
| 1875 | } |
| 1876 | |
| 1877 | func (m queryMetricsStore) GetFileByID(ctx context.Context, id uuid.UUID) (database.File, error) { |
| 1878 | start := time.Now() |
| 1879 | r0, r1 := m.s.GetFileByID(ctx, id) |
| 1880 | m.queryLatencies.WithLabelValues("GetFileByID").Observe(time.Since(start).Seconds()) |
| 1881 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetFileByID").Inc() |
| 1882 | return r0, r1 |
| 1883 | } |
| 1884 | |
| 1885 | func (m queryMetricsStore) GetFileTemplates(ctx context.Context, fileID uuid.UUID) ([]database.GetFileTemplatesRow, error) { |
| 1886 | start := time.Now() |
nothing calls this directly
no test coverage detected