You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
f4da59e651
Fixes https://github.com/open-telemetry/opentelemetry-go/issues/7932 Noticeable comment from previous PR: https://github.com/open-telemetry/opentelemetry-go/pull/7942#discussion_r2913179215 Print the empty value as empty string per https://opentelemetry.io/docs/specs/otel/common/#empty-values
33 lines
814 B
Go
33 lines
814 B
Go
// Code generated by "stringer -type=Type"; DO NOT EDIT.
|
|
|
|
package attribute
|
|
|
|
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[EMPTY-0]
|
|
_ = x[BOOL-1]
|
|
_ = x[INT64-2]
|
|
_ = x[FLOAT64-3]
|
|
_ = x[STRING-4]
|
|
_ = x[BOOLSLICE-5]
|
|
_ = x[INT64SLICE-6]
|
|
_ = x[FLOAT64SLICE-7]
|
|
_ = x[STRINGSLICE-8]
|
|
}
|
|
|
|
const _Type_name = "EMPTYBOOLINT64FLOAT64STRINGBOOLSLICEINT64SLICEFLOAT64SLICESTRINGSLICE"
|
|
|
|
var _Type_index = [...]uint8{0, 5, 9, 14, 21, 27, 36, 46, 58, 69}
|
|
|
|
func (i Type) String() string {
|
|
idx := int(i) - 0
|
|
if i < 0 || idx >= len(_Type_index)-1 {
|
|
return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Type_name[_Type_index[idx]:_Type_index[idx+1]]
|
|
}
|