(ctx context.Context, arg database.GetChatCostPerUserParams)
| 1355 | } |
| 1356 | |
| 1357 | func (m queryMetricsStore) GetChatCostPerUser(ctx context.Context, arg database.GetChatCostPerUserParams) ([]database.GetChatCostPerUserRow, error) { |
| 1358 | start := time.Now() |
| 1359 | r0, r1 := m.s.GetChatCostPerUser(ctx, arg) |
| 1360 | m.queryLatencies.WithLabelValues("GetChatCostPerUser").Observe(time.Since(start).Seconds()) |
| 1361 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChatCostPerUser").Inc() |
| 1362 | return r0, r1 |
| 1363 | } |
| 1364 | |
| 1365 | func (m queryMetricsStore) GetChatCostSummary(ctx context.Context, arg database.GetChatCostSummaryParams) (database.GetChatCostSummaryRow, error) { |
| 1366 | start := time.Now() |
nothing calls this directly
no test coverage detected