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

Method UpdateChatDebugRun

coderd/database/dbmetrics/querymetrics.go:4789–4795  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateChatDebugRunParams)

Source from the content-addressed store, hash-verified

4787}
4788
4789func (m queryMetricsStore) UpdateChatDebugRun(ctx context.Context, arg database.UpdateChatDebugRunParams) (database.ChatDebugRun, error) {
4790 start := time.Now()
4791 r0, r1 := m.s.UpdateChatDebugRun(ctx, arg)
4792 m.queryLatencies.WithLabelValues("UpdateChatDebugRun").Observe(time.Since(start).Seconds())
4793 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "UpdateChatDebugRun").Inc()
4794 return r0, r1
4795}
4796
4797func (m queryMetricsStore) UpdateChatDebugStep(ctx context.Context, arg database.UpdateChatDebugStepParams) (database.ChatDebugStep, error) {
4798 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
UpdateChatDebugRunMethod · 0.65

Tested by

no test coverage detected