MCPcopy Index your code
hub / github.com/coder/coder / ArchiveChatByID

Method ArchiveChatByID

coderd/database/dbmetrics/querymetrics.go:165–171  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

163}
164
165func (m queryMetricsStore) ArchiveChatByID(ctx context.Context, id uuid.UUID) ([]database.Chat, error) {
166 start := time.Now()
167 r0, r1 := m.s.ArchiveChatByID(ctx, id)
168 m.queryLatencies.WithLabelValues("ArchiveChatByID").Observe(time.Since(start).Seconds())
169 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "ArchiveChatByID").Inc()
170 return r0, r1
171}
172
173func (m queryMetricsStore) ArchiveUnusedTemplateVersions(ctx context.Context, arg database.ArchiveUnusedTemplateVersionsParams) ([]uuid.UUID, error) {
174 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
ArchiveChatByIDMethod · 0.65

Tested by

no test coverage detected