MCPcopy Index your code
hub / github.com/kopia/kopia / pushOnce

Method pushOnce

cli/observability_flags.go:317–323  ·  view source on GitHub ↗
(ctx context.Context, kind string, p *push.Pusher)

Source from the content-addressed store, hash-verified

315}
316
317func (c *observabilityFlags) pushOnce(ctx context.Context, kind string, p *push.Pusher) {
318 log(ctx).Debugw("pushing prometheus metrics", "kind", kind)
319
320 if err := p.Push(); err != nil {
321 log(ctx).Debugw("error pushing prometheus metrics", "kind", kind, "err", err)
322 }
323}

Callers 2

pushPeriodicallyMethod · 0.95

Calls 1

PushMethod · 0.45

Tested by

no test coverage detected