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

Method GetAIProviderKeys

coderd/database/dbmetrics/querymetrics.go:1093–1099  ·  view source on GitHub ↗
(ctx context.Context, includeDeleted bool)

Source from the content-addressed store, hash-verified

1091}
1092
1093func (m queryMetricsStore) GetAIProviderKeys(ctx context.Context, includeDeleted bool) ([]database.AIProviderKey, error) {
1094 start := time.Now()
1095 r0, r1 := m.s.GetAIProviderKeys(ctx, includeDeleted)
1096 m.queryLatencies.WithLabelValues("GetAIProviderKeys").Observe(time.Since(start).Seconds())
1097 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetAIProviderKeys").Inc()
1098 return r0, r1
1099}
1100
1101func (m queryMetricsStore) GetAIProviderKeysByProviderID(ctx context.Context, providerID uuid.UUID) ([]database.AIProviderKey, error) {
1102 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetAIProviderKeysMethod · 0.65

Tested by

no test coverage detected