(ctx context.Context, id uuid.UUID)
| 1051 | } |
| 1052 | |
| 1053 | func (m queryMetricsStore) GetAIProviderByID(ctx context.Context, id uuid.UUID) (database.AIProvider, error) { |
| 1054 | start := time.Now() |
| 1055 | r0, r1 := m.s.GetAIProviderByID(ctx, id) |
| 1056 | m.queryLatencies.WithLabelValues("GetAIProviderByID").Observe(time.Since(start).Seconds()) |
| 1057 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetAIProviderByID").Inc() |
| 1058 | return r0, r1 |
| 1059 | } |
| 1060 | |
| 1061 | func (m queryMetricsStore) GetAIProviderByIDForReferenceLock(ctx context.Context, id uuid.UUID) (database.AIProvider, error) { |
| 1062 | start := time.Now() |
nothing calls this directly
no test coverage detected