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

Method GetChatMessageByID

coderd/database/dbmetrics/querymetrics.go:1493–1499  ·  view source on GitHub ↗
(ctx context.Context, id int64)

Source from the content-addressed store, hash-verified

1491}
1492
1493func (m queryMetricsStore) GetChatMessageByID(ctx context.Context, id int64) (database.ChatMessage, error) {
1494 start := time.Now()
1495 r0, r1 := m.s.GetChatMessageByID(ctx, id)
1496 m.queryLatencies.WithLabelValues("GetChatMessageByID").Observe(time.Since(start).Seconds())
1497 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChatMessageByID").Inc()
1498 return r0, r1
1499}
1500
1501func (m queryMetricsStore) GetChatMessageSummariesPerChat(ctx context.Context, createdAfter time.Time) ([]database.GetChatMessageSummariesPerChatRow, error) {
1502 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetChatMessageByIDMethod · 0.65

Tested by

no test coverage detected