type Value … type ValueKind … const ValueBad … const ValueUint64 … // Kind returns the ValueKind of the value. // // It represents the underlying structure of the value. // // New ValueKinds may be added in the future. Users of this type must be robust // to that possibility. func (v Value) Kind() ValueKind { … } // Uint64 returns the uint64 value for a MetricSampleUint64. // // Panics if this metric sample's Kind is not MetricSampleUint64. func (v Value) Uint64() uint64 { … } // valueAsString produces a debug string value. // // This isn't just Value.String because we may want to use that to store // string values in the future. func valueAsString(v Value) string { … }