(ctx context.Context, id int64)
| 1491 | } |
| 1492 | |
| 1493 | func (m queryMetricsStore) GetChatMessageByID(ctx context.Context, id int64) (database.ChatMessage, error) { |
| 1494 | start := time.Now() |
| 1495 | r0, r1 := m.s.GetChatMessageByID(ctx, id) |
| 1496 | m.queryLatencies.WithLabelValues("GetChatMessageByID").Observe(time.Since(start).Seconds()) |
| 1497 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChatMessageByID").Inc() |
| 1498 | return r0, r1 |
| 1499 | } |
| 1500 | |
| 1501 | func (m queryMetricsStore) GetChatMessageSummariesPerChat(ctx context.Context, createdAfter time.Time) ([]database.GetChatMessageSummariesPerChatRow, error) { |
| 1502 | start := time.Now() |
nothing calls this directly
no test coverage detected