mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +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
29 lines
1.0 KiB
Go
29 lines
1.0 KiB
Go
// Code generated by "stringer -type=InstrumentKind"; 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[ValueRecorderInstrumentKind-0]
|
|
_ = x[ValueObserverInstrumentKind-1]
|
|
_ = x[CounterInstrumentKind-2]
|
|
_ = x[UpDownCounterInstrumentKind-3]
|
|
_ = x[SumObserverInstrumentKind-4]
|
|
_ = x[UpDownSumObserverInstrumentKind-5]
|
|
}
|
|
|
|
const _InstrumentKind_name = "ValueRecorderInstrumentKindValueObserverInstrumentKindCounterInstrumentKindUpDownCounterInstrumentKindSumObserverInstrumentKindUpDownSumObserverInstrumentKind"
|
|
|
|
var _InstrumentKind_index = [...]uint8{0, 27, 54, 75, 102, 127, 158}
|
|
|
|
func (i InstrumentKind) String() string {
|
|
if i < 0 || i >= InstrumentKind(len(_InstrumentKind_index)-1) {
|
|
return "InstrumentKind(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _InstrumentKind_name[_InstrumentKind_index[i]:_InstrumentKind_index[i+1]]
|
|
}
|