(ctx context.Context, arg database.GetChatsParams)
| 1667 | } |
| 1668 | |
| 1669 | func (m queryMetricsStore) GetChats(ctx context.Context, arg database.GetChatsParams) ([]database.GetChatsRow, error) { |
| 1670 | start := time.Now() |
| 1671 | r0, r1 := m.s.GetChats(ctx, arg) |
| 1672 | m.queryLatencies.WithLabelValues("GetChats").Observe(time.Since(start).Seconds()) |
| 1673 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChats").Inc() |
| 1674 | return r0, r1 |
| 1675 | } |
| 1676 | |
| 1677 | func (m queryMetricsStore) GetChatsByChatFileID(ctx context.Context, fileID uuid.UUID) ([]database.Chat, error) { |
| 1678 | start := time.Now() |
nothing calls this directly
no test coverage detected