MCPcopy Create free account
hub / github.com/coder/coder / GetBoundaryLogByID

Method GetBoundaryLogByID

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

Source from the content-addressed store, hash-verified

1275}
1276
1277func (m queryMetricsStore) GetBoundaryLogByID(ctx context.Context, id uuid.UUID) (database.BoundaryLog, error) {
1278 start := time.Now()
1279 r0, r1 := m.s.GetBoundaryLogByID(ctx, id)
1280 m.queryLatencies.WithLabelValues("GetBoundaryLogByID").Observe(time.Since(start).Seconds())
1281 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetBoundaryLogByID").Inc()
1282 return r0, r1
1283}
1284
1285func (m queryMetricsStore) GetBoundarySessionByID(ctx context.Context, id uuid.UUID) (database.BoundarySession, error) {
1286 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetBoundaryLogByIDMethod · 0.65

Tested by

no test coverage detected