(ctx context.Context, arg database.GetAuditLogsOffsetParams)
| 1251 | } |
| 1252 | |
| 1253 | func (m queryMetricsStore) GetAuditLogsOffset(ctx context.Context, arg database.GetAuditLogsOffsetParams) ([]database.GetAuditLogsOffsetRow, error) { |
| 1254 | start := time.Now() |
| 1255 | r0, r1 := m.s.GetAuditLogsOffset(ctx, arg) |
| 1256 | m.queryLatencies.WithLabelValues("GetAuditLogsOffset").Observe(time.Since(start).Seconds()) |
| 1257 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetAuditLogsOffset").Inc() |
| 1258 | return r0, r1 |
| 1259 | } |
| 1260 | |
| 1261 | func (m queryMetricsStore) GetAuthenticatedWorkspaceAgentAndBuildByAuthToken(ctx context.Context, authToken uuid.UUID) (database.GetAuthenticatedWorkspaceAgentAndBuildByAuthTokenRow, error) { |
| 1262 | start := time.Now() |
nothing calls this directly
no test coverage detected