Documentation ¶
Index ¶
Constants ¶
View Source
const ( Milliseconds Unit = iota Seconds MillisecondsStr = "ms" SecondsStr = "s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistogramMetrics ¶
type HistogramMetrics interface { GetOrCreate(key Key, attributes pcommon.Map) Histogram BuildMetrics(pmetric.Metric, generateStartTimestamp, pcommon.Timestamp, pmetric.AggregationTemporality) ClearExemplars() }
func NewExplicitHistogramMetrics ¶
func NewExplicitHistogramMetrics(bounds []float64, maxExemplarCount *int) HistogramMetrics
func NewExponentialHistogramMetrics ¶
func NewExponentialHistogramMetrics(maxSize int32, maxExemplarCount *int) HistogramMetrics
type SumMetrics ¶
type SumMetrics struct {
// contains filtered or unexported fields
}
func NewSumMetrics ¶
func NewSumMetrics(maxExemplarCount *int) SumMetrics
func (*SumMetrics) BuildMetrics ¶
func (m *SumMetrics) BuildMetrics( metric pmetric.Metric, startTimestamp generateStartTimestamp, timestamp pcommon.Timestamp, temporality pmetric.AggregationTemporality, )
func (*SumMetrics) ClearExemplars ¶ added in v0.99.0
func (m *SumMetrics) ClearExemplars()
func (*SumMetrics) GetOrCreate ¶
func (m *SumMetrics) GetOrCreate(key Key, attributes pcommon.Map) *Sum
type Unit ¶ added in v0.74.0
type Unit int8
func (Unit) MarshalText ¶ added in v0.74.0
MarshalText marshals Unit to text.
func (*Unit) UnmarshalText ¶ added in v0.74.0
UnmarshalText unmarshalls text to a Unit.
Click to show internal directories.
Click to hide internal directories.