kubernetes/vendor/go.opentelemetry.io/otel/attribute/kv.go

type KeyValue

// Valid returns if kv is a valid OpenTelemetry attribute.
func (kv KeyValue) Valid() bool {}

// Bool creates a KeyValue with a BOOL Value type.
func Bool(k string, v bool) KeyValue {}

// BoolSlice creates a KeyValue with a BOOLSLICE Value type.
func BoolSlice(k string, v []bool) KeyValue {}

// Int creates a KeyValue with an INT64 Value type.
func Int(k string, v int) KeyValue {}

// IntSlice creates a KeyValue with an INT64SLICE Value type.
func IntSlice(k string, v []int) KeyValue {}

// Int64 creates a KeyValue with an INT64 Value type.
func Int64(k string, v int64) KeyValue {}

// Int64Slice creates a KeyValue with an INT64SLICE Value type.
func Int64Slice(k string, v []int64) KeyValue {}

// Float64 creates a KeyValue with a FLOAT64 Value type.
func Float64(k string, v float64) KeyValue {}

// Float64Slice creates a KeyValue with a FLOAT64SLICE Value type.
func Float64Slice(k string, v []float64) KeyValue {}

// String creates a KeyValue with a STRING Value type.
func String(k, v string) KeyValue {}

// StringSlice creates a KeyValue with a STRINGSLICE Value type.
func StringSlice(k string, v []string) KeyValue {}

// Stringer creates a new key-value pair with a passed name and a string
// value generated by the passed Stringer interface.
func Stringer(k string, v fmt.Stringer) KeyValue {}