(ctx context.Context, key string, f func(any) bool)
| 97 | } |
| 98 | |
| 99 | func (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 | |
| 106 | func (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 { |