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

Method DeleteOldChats

coderd/database/dbmetrics/querymetrics.go:701–707  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteOldChatsParams)

Source from the content-addressed store, hash-verified

699}
700
701func (m queryMetricsStore) DeleteOldChats(ctx context.Context, arg database.DeleteOldChatsParams) (int64, error) {
702 start := time.Now()
703 r0, r1 := m.s.DeleteOldChats(ctx, arg)
704 m.queryLatencies.WithLabelValues("DeleteOldChats").Observe(time.Since(start).Seconds())
705 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "DeleteOldChats").Inc()
706 return r0, r1
707}
708
709func (m queryMetricsStore) DeleteOldConnectionLogs(ctx context.Context, arg database.DeleteOldConnectionLogsParams) (int64, error) {
710 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
DeleteOldChatsMethod · 0.65

Tested by

no test coverage detected