MCPcopy
hub / github.com/grafana/dskit / Delete

Method Delete

kv/consul/metrics.go:68–77  ·  view source on GitHub ↗
(key string, options *consul.WriteOptions)

Source from the content-addressed store, hash-verified

66}
67
68func (c consulInstrumentation) Delete(key string, options *consul.WriteOptions) (*consul.WriteMeta, error) {
69 var meta *consul.WriteMeta
70 err := instrument.CollectedRequest(options.Context(), "Delete", c.consulMetrics.consulRequestDuration, instrument.ErrorCode, func(ctx context.Context) error {
71 options = options.WithContext(ctx)
72 var err error
73 meta, err = c.kv.Delete(key, options)
74 return err
75 })
76 return meta, err
77}
78
79func (c consulInstrumentation) Put(p *consul.KVPair, options *consul.WriteOptions) (*consul.WriteMeta, error) {
80 var result *consul.WriteMeta

Callers

nothing calls this directly

Calls 3

CollectedRequestFunction · 0.92
DeleteMethod · 0.65
ContextMethod · 0.45

Tested by

no test coverage detected