mirror of
https://github.com/golang/go
synced 2024-11-19 02:24:41 -07:00
922a4ee32d
This makes the code read slightly better, and more closely aligns with the open telemetry code. Change-Id: I87eaf7d08b802f7862f896f2654456ee6a7681e3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/190404 Run-TryBot: Ian Cottrell <iancottrell@google.com> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
20 lines
668 B
Go
20 lines
668 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package unit holds the definitions for the units you can use in telemetry.
|
|
package unit
|
|
|
|
// Unit is used to specify the units for a given measure.
|
|
// This is can used for display purposes.
|
|
type Unit string
|
|
|
|
const (
|
|
// UnitDimensionless indicates that a measure has no specified units.
|
|
Dimensionless = "1"
|
|
// UnitBytes indicates that that a measure is recording number of bytes.
|
|
Bytes = "By"
|
|
// UnitMilliseconds indicates that a measure is recording a duration in milliseconds.
|
|
Milliseconds = "ms"
|
|
)
|