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

Method InsertLicense

coderd/database/dbmetrics/querymetrics.go:3925–3931  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertLicenseParams)

Source from the content-addressed store, hash-verified

3923}
3924
3925func (m queryMetricsStore) InsertLicense(ctx context.Context, arg database.InsertLicenseParams) (database.License, error) {
3926 start := time.Now()
3927 r0, r1 := m.s.InsertLicense(ctx, arg)
3928 m.queryLatencies.WithLabelValues("InsertLicense").Observe(time.Since(start).Seconds())
3929 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertLicense").Inc()
3930 return r0, r1
3931}
3932
3933func (m queryMetricsStore) InsertMCPServerConfig(ctx context.Context, arg database.InsertMCPServerConfigParams) (database.MCPServerConfig, error) {
3934 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertLicenseMethod · 0.65

Tested by

no test coverage detected