(ctx context.Context, arg database.GetChatCostPerChatParams)
| 1339 | } |
| 1340 | |
| 1341 | func (m queryMetricsStore) GetChatCostPerChat(ctx context.Context, arg database.GetChatCostPerChatParams) ([]database.GetChatCostPerChatRow, error) { |
| 1342 | start := time.Now() |
| 1343 | r0, r1 := m.s.GetChatCostPerChat(ctx, arg) |
| 1344 | m.queryLatencies.WithLabelValues("GetChatCostPerChat").Observe(time.Since(start).Seconds()) |
| 1345 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChatCostPerChat").Inc() |
| 1346 | return r0, r1 |
| 1347 | } |
| 1348 | |
| 1349 | func (m queryMetricsStore) GetChatCostPerModel(ctx context.Context, arg database.GetChatCostPerModelParams) ([]database.GetChatCostPerModelRow, error) { |
| 1350 | start := time.Now() |
nothing calls this directly
no test coverage detected