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

Method PinChatByID

coderd/database/dbmetrics/querymetrics.go:4557–4563  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

4555}
4556
4557func (m queryMetricsStore) PinChatByID(ctx context.Context, id uuid.UUID) error {
4558 start := time.Now()
4559 r0 := m.s.PinChatByID(ctx, id)
4560 m.queryLatencies.WithLabelValues("PinChatByID").Observe(time.Since(start).Seconds())
4561 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "PinChatByID").Inc()
4562 return r0
4563}
4564
4565func (m queryMetricsStore) PopNextQueuedMessage(ctx context.Context, chatID uuid.UUID) (database.ChatQueuedMessage, error) {
4566 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
PinChatByIDMethod · 0.65

Tested by

no test coverage detected