(ctx context.Context, arg database.CustomRolesParams)
| 387 | } |
| 388 | |
| 389 | func (m queryMetricsStore) CustomRoles(ctx context.Context, arg database.CustomRolesParams) ([]database.CustomRole, error) { |
| 390 | start := time.Now() |
| 391 | r0, r1 := m.s.CustomRoles(ctx, arg) |
| 392 | m.queryLatencies.WithLabelValues("CustomRoles").Observe(time.Since(start).Seconds()) |
| 393 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "CustomRoles").Inc() |
| 394 | return r0, r1 |
| 395 | } |
| 396 | |
| 397 | func (m queryMetricsStore) DeleteAIProviderByID(ctx context.Context, id uuid.UUID) error { |
| 398 | start := time.Now() |
nothing calls this directly
no test coverage detected