mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
a8faf8cacc
fixes #851 This includes all of the associated methods, such as AsUint64, AsUint64Atomic, AsUint64Ptr, CoerceToUint64, SetUint64 SetUint64Atomic, SwapUint64, SwapUint64Atomic, AddUint64, AddUint64Atomic, CompamreAndSwapUint64, CompareUint64 Only significant change as a result was converting the histogram aggregator's `count` state field into an int64 from a `metric.Number`. Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
25 lines
675 B
Go
25 lines
675 B
Go
// Code generated by "stringer -type=NumberKind"; DO NOT EDIT.
|
|
|
|
package metric
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[Int64NumberKind-0]
|
|
_ = x[Float64NumberKind-1]
|
|
}
|
|
|
|
const _NumberKind_name = "Int64NumberKindFloat64NumberKind"
|
|
|
|
var _NumberKind_index = [...]uint8{0, 15, 32}
|
|
|
|
func (i NumberKind) String() string {
|
|
if i < 0 || i >= NumberKind(len(_NumberKind_index)-1) {
|
|
return "NumberKind(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _NumberKind_name[_NumberKind_index[i]:_NumberKind_index[i+1]]
|
|
}
|