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

Method InsertChatFile

coderd/database/dbmetrics/querymetrics.go:3805–3811  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertChatFileParams)

Source from the content-addressed store, hash-verified

3803}
3804
3805func (m queryMetricsStore) InsertChatFile(ctx context.Context, arg database.InsertChatFileParams) (database.InsertChatFileRow, error) {
3806 start := time.Now()
3807 r0, r1 := m.s.InsertChatFile(ctx, arg)
3808 m.queryLatencies.WithLabelValues("InsertChatFile").Observe(time.Since(start).Seconds())
3809 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertChatFile").Inc()
3810 return r0, r1
3811}
3812
3813func (m queryMetricsStore) InsertChatMessages(ctx context.Context, arg database.InsertChatMessagesParams) ([]database.ChatMessage, error) {
3814 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertChatFileMethod · 0.65

Tested by

no test coverage detected