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

Method List

kv/metrics.go:69–77  ·  view source on GitHub ↗
(ctx context.Context, prefix string)

Source from the content-addressed store, hash-verified

67}
68
69func (m metrics) List(ctx context.Context, prefix string) ([]string, error) {
70 var result []string
71 err := instrument.CollectedRequest(ctx, "List", m.requestDuration, instrument.ErrorCode, func(ctx context.Context) error {
72 var err error
73 result, err = m.c.List(ctx, prefix)
74 return err
75 })
76 return result, err
77}
78
79func (m metrics) Get(ctx context.Context, key string) (interface{}, error) {
80 var result interface{}

Callers

nothing calls this directly

Calls 2

CollectedRequestFunction · 0.92
ListMethod · 0.65

Tested by

no test coverage detected