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

Method InsertBoundaryLog

coderd/database/dbmetrics/querymetrics.go:3765–3771  ·  view source on GitHub ↗
(ctx context.Context, arg database.InsertBoundaryLogParams)

Source from the content-addressed store, hash-verified

3763}
3764
3765func (m queryMetricsStore) InsertBoundaryLog(ctx context.Context, arg database.InsertBoundaryLogParams) (database.BoundaryLog, error) {
3766 start := time.Now()
3767 r0, r1 := m.s.InsertBoundaryLog(ctx, arg)
3768 m.queryLatencies.WithLabelValues("InsertBoundaryLog").Observe(time.Since(start).Seconds())
3769 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "InsertBoundaryLog").Inc()
3770 return r0, r1
3771}
3772
3773func (m queryMetricsStore) InsertBoundarySession(ctx context.Context, arg database.InsertBoundarySessionParams) (database.BoundarySession, error) {
3774 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
InsertBoundaryLogMethod · 0.65

Tested by

no test coverage detected