mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-14 10:13:10 +02:00
d8682c1999
* Create MeterImpl interface * Checkpoint w/ sdk.go building * Checkpoint working on global * api/global builds (test fails) * Test fix * All tests pass * Comments * Add two tests * Comments and uncomment tests * Precommit part 1 * Still working on tests * Lint * Add a test and a TODO * Cleanup * Lint * Interface()->Implementation() * Apply some feedback * From feedback * (A)Synchronous -> (A)Sync * Add a missing comment * Apply suggestions from code review Co-Authored-By: Krzesimir Nowak <qdlacz@gmail.com> * Rename a variable Co-authored-by: Krzesimir Nowak <qdlacz@gmail.com>
26 lines
634 B
Go
26 lines
634 B
Go
// Code generated by "stringer -type=Kind"; 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[MeasureKind-0]
|
|
_ = x[ObserverKind-1]
|
|
_ = x[CounterKind-2]
|
|
}
|
|
|
|
const _Kind_name = "MeasureKindObserverKindCounterKind"
|
|
|
|
var _Kind_index = [...]uint8{0, 11, 23, 34}
|
|
|
|
func (i Kind) String() string {
|
|
if i < 0 || i >= Kind(len(_Kind_index)-1) {
|
|
return "Kind(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
|
|
}
|