mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-14 10:13:10 +02:00
a7b9d02167
* s/ValueRecorder/Histogram/g * s/ValueObserver/GaugeObserver/g * s/UpDownSumObserver/UpDownCounterObserver/g * s/SumObserver/CounterObserver/g * changelog * pr num * unstable->experimental * Apply suggestions from code review Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> * Apply suggestions from code review * apply feedback from @evantorrie by hand * Apply suggestions from code review Thanks Co-authored-by: ET <evantorrie@users.noreply.github.com> * Update sdk/export/metric/metric.go * Apply suggestions from code review Thank you @evantorrie ! Co-authored-by: ET <evantorrie@users.noreply.github.com> * revert getting-started fix let tyler's update remove this text * more variable name fixes * test repair Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com> Co-authored-by: ET <evantorrie@users.noreply.github.com> Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
29 lines
1.0 KiB
Go
29 lines
1.0 KiB
Go
// Code generated by "stringer -type=InstrumentKind"; DO NOT EDIT.
|
|
|
|
package sdkapi
|
|
|
|
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[HistogramInstrumentKind-0]
|
|
_ = x[GaugeObserverInstrumentKind-1]
|
|
_ = x[CounterInstrumentKind-2]
|
|
_ = x[UpDownCounterInstrumentKind-3]
|
|
_ = x[CounterObserverInstrumentKind-4]
|
|
_ = x[UpDownCounterObserverInstrumentKind-5]
|
|
}
|
|
|
|
const _InstrumentKind_name = "HistogramInstrumentKindGaugeObserverInstrumentKindCounterInstrumentKindUpDownCounterInstrumentKindCounterObserverInstrumentKindUpDownCounterObserverInstrumentKind"
|
|
|
|
var _InstrumentKind_index = [...]uint8{0, 23, 50, 71, 98, 127, 162}
|
|
|
|
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]]
|
|
}
|