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

Method GetChatACLByID

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

Source from the content-addressed store, hash-verified

1291}
1292
1293func (m queryMetricsStore) GetChatACLByID(ctx context.Context, id uuid.UUID) (database.GetChatACLByIDRow, error) {
1294 start := time.Now()
1295 r0, r1 := m.s.GetChatACLByID(ctx, id)
1296 m.queryLatencies.WithLabelValues("GetChatACLByID").Observe(time.Since(start).Seconds())
1297 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetChatACLByID").Inc()
1298 return r0, r1
1299}
1300
1301func (m queryMetricsStore) GetChatAdvisorConfig(ctx context.Context) (string, error) {
1302 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetChatACLByIDMethod · 0.65

Tested by

no test coverage detected