(p *consul.KVPair, options *consul.WriteOptions)
| 77 | } |
| 78 | |
| 79 | func (c consulInstrumentation) Put(p *consul.KVPair, options *consul.WriteOptions) (*consul.WriteMeta, error) { |
| 80 | var result *consul.WriteMeta |
| 81 | err := instrument.CollectedRequest(options.Context(), "Put", c.consulMetrics.consulRequestDuration, instrument.ErrorCode, func(ctx context.Context) error { |
| 82 | options = options.WithContext(ctx) |
| 83 | var err error |
| 84 | result, err = c.kv.Put(p, options) |
| 85 | return err |
| 86 | }) |
| 87 | return result, err |
| 88 | } |
nothing calls this directly
no test coverage detected