MCPcopy Create free account
hub / github.com/cortexproject/cortex / WatchKey

Method WatchKey

pkg/ring/kv/metrics.go:99–104  ·  view source on GitHub ↗
(ctx context.Context, key string, f func(any) bool)

Source from the content-addressed store, hash-verified

97}
98
99func (m metrics) WatchKey(ctx context.Context, key string, f func(any) bool) {
100 _ = instrument.CollectedRequest(ctx, "WatchKey", m.requestDuration, instrument.ErrorCode, func(ctx context.Context) error {
101 m.c.WatchKey(ctx, key, f)
102 return nil
103 })
104}
105
106func (m metrics) WatchPrefix(ctx context.Context, prefix string, f func(string, any) bool) {
107 _ = instrument.CollectedRequest(ctx, "WatchPrefix", m.requestDuration, instrument.ErrorCode, func(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

WatchKeyMethod · 0.65

Tested by

no test coverage detected