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

Method InsertChatDebugRun

coderd/database/dbmetrics/querymetrics.go:3789–3795  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertChatDebugRunParams)

Source from the content-addressed store, hash-verified

3787}
3788
3789func (m queryMetricsStore) InsertChatDebugRun(ctx context.Context, arg database.InsertChatDebugRunParams) (database.ChatDebugRun, error) {
3790 start := time.Now()
3791 r0, r1 := m.s.InsertChatDebugRun(ctx, arg)
3792 m.queryLatencies.WithLabelValues("InsertChatDebugRun").Observe(time.Since(start).Seconds())
3793 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertChatDebugRun").Inc()
3794 return r0, r1
3795}
3796
3797func (m queryMetricsStore) InsertChatDebugStep(ctx context.Context, arg database.InsertChatDebugStepParams) (database.ChatDebugStep, error) {
3798 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertChatDebugRunMethod · 0.65

Tested by

no test coverage detected