1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // Sample captures a single metric sample.
9 // Name is the name of the metric sampled.
11 // It must correspond to a name in one of the metric descriptions
12 // returned by Descriptions.
15 // Value is the value of the metric sample.
19 // Read populates each Value field in the given slice of metric samples.
21 // Desired metrics should be present in the slice with the appropriate name.
22 // The user of this API is encouraged to re-use the same slice between calls.
24 // Metric values with names not appearing in the value returned by Descriptions
25 // will have the value populated as KindBad to indicate that the name is
27 func Read(m []Sample) {
28 panic("unimplemented")