(path string, options *consul.QueryOptions)
| 54 | } |
| 55 | |
| 56 | func (c consulInstrumentation) List(path string, options *consul.QueryOptions) (consul.KVPairs, *consul.QueryMeta, error) { |
| 57 | var kvps consul.KVPairs |
| 58 | var meta *consul.QueryMeta |
| 59 | err := instrument.CollectedRequest(options.Context(), "List", c.consulMetrics.consulRequestDuration, instrument.ErrorCode, func(ctx context.Context) error { |
| 60 | options = options.WithContext(ctx) |
| 61 | var err error |
| 62 | kvps, meta, err = c.kv.List(path, options) |
| 63 | return err |
| 64 | }) |
| 65 | return kvps, meta, err |
| 66 | } |
| 67 | |
| 68 | func (c consulInstrumentation) Delete(key string, options *consul.WriteOptions) (*consul.WriteMeta, error) { |
| 69 | var meta *consul.WriteMeta |
nothing calls this directly
no test coverage detected