mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-12 02:28:07 +02:00
818c7b14b3
* Update metric Kind to InstrumentKind * Update all the other modules with Kind rename * Update metric Descriptor with instrument Kind rename * Update other modules with Descriptor method rename * Update OTLP exporter test field name * Rename kind filenames * Add changes to CHANGELOG * Fix documentation for Grouping and PrecomputedSum * Rename meter.go to metric.go * Move descriptor.go into metric.go * Move must.go into metric.go * Move instruments into metric_instrument.go * Rename metric api_test.go to metric_test.go * Move instrumentkind_test.go into metric_test.go * Rename sdkapi.go metric_sdkapi.go * Move api/metric into otel * Update to use moved packages * Rename otel.go to error_handler.go * Add changes to CHANGELOG * Fix merge conflict resolution error
25 lines
673 B
Go
25 lines
673 B
Go
// Code generated by "stringer -type=NumberKind"; DO NOT EDIT.
|
|
|
|
package otel
|
|
|
|
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]]
|
|
}
|