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

Method InsertDeploymentID

coderd/database/dbmetrics/querymetrics.go:3869–3875  ·  view source on GitHub ↗
(ctx context.Context, value string)

Source from the content-addressed store, hash-verified

3867}
3868
3869func (m queryMetricsStore) InsertDeploymentID(ctx context.Context, value string) error {
3870 start := time.Now()
3871 r0 := m.s.InsertDeploymentID(ctx, value)
3872 m.queryLatencies.WithLabelValues("InsertDeploymentID").Observe(time.Since(start).Seconds())
3873 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertDeploymentID").Inc()
3874 return r0
3875}
3876
3877func (m queryMetricsStore) InsertExternalAuthLink(ctx context.Context, arg database.InsertExternalAuthLinkParams) (database.ExternalAuthLink, error) {
3878 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertDeploymentIDMethod · 0.65

Tested by

no test coverage detected