Write encodes the Metric into a "Metric" Protocol Buffer data transmission object. Metric implementations must observe concurrency safety as reads of this metric may occur at any time, and any blocking occurs at the expense of total performance of rendering all registered metrics. Ideally, Metric i
(*dto.Metric)
| 52 | // recommended to sort labels lexicographically. Callers of Write should |
| 53 | // still make sure of sorting if they depend on it. |
| 54 | Write(*dto.Metric) error |
| 55 | // TODO(beorn7): The original rationale of passing in a pre-allocated |
| 56 | // dto.Metric protobuf to save allocations has disappeared. The |
| 57 | // signature of this method should be changed to "Write() (*dto.Metric, |
no outgoing calls