Documentation ¶
Index ¶
Constants ¶
const ( NameCumulative = "cumulative" NameDelta = "delta" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregation ¶
type Aggregation interface {
Kind() Kind
}
Aggregation is an interface returned by the Aggregator containing an interval of metric data.
type Buckets ¶
Buckets describes a range of consecutive buckets, starting at Offset(). This type is used to encode either the positive or negative ranges of an Histogram.
type Category ¶
type Category int
Category constants describe semantic kind. For the histogram category there are multiple implementations, for those distinctions as well as Drop, use Kind.
type CumulativeTemporalityTrait ¶
type CumulativeTemporalityTrait struct{}
func (CumulativeTemporalityTrait) Temporality ¶
func (CumulativeTemporalityTrait) Temporality() Temporality
type DeltaTemporalityTrait ¶
type DeltaTemporalityTrait struct{}
func (DeltaTemporalityTrait) Temporality ¶
func (DeltaTemporalityTrait) Temporality() Temporality
type Gauge ¶
type Gauge interface { Aggregation // Gauge returns the most recently observed value. Gauge() number.Number }
Gauge returns the latest value that was aggregated.
type Histogram ¶
type Histogram interface { Aggregation Count() uint64 HasASum Scale() int32 ZeroCount() uint64 Positive() Buckets Negative() Buckets Min() number.Number Max() number.Number }
Histogram returns the count of events in exponential-scale buckets defined as a function of a scale parameter. See a detailed explanation in the OpenTelemetry metrics data model: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md#exponentialhistogram
type Kind ¶
type Kind int
type KindSelector ¶
type KindSelector func(sdkinstrument.Kind) Kind
KindSelector is a per-instrument-kind Kind choice.
type MinMaxSumCount ¶
type MinMaxSumCount interface { Aggregation Count() uint64 HasASum Min() number.Number Max() number.Number }
MinMaxSumCount is a low cost HistogramCategory aggregator that records the Min, Max, Sum, and Count.
type Sum ¶
type Sum interface { // Review NOTE: Should this be Total() or Value()? HasASum IsMonotonic() bool }
Sum returns an aggregated sum.
type Temporality ¶
type Temporality uint8
const ( // UndefinedTemporality indicates that temporality is not defined. UndefinedTemporality Temporality = 0 // CumulativeTemporality indicates that an Exporter expects a // Cumulative Aggregation. CumulativeTemporality Temporality = 1 // DeltaTemporality indicates that an Exporter expects a // Delta Aggregation. DeltaTemporality Temporality = 2 )
func LowMemoryTemporality ¶ added in v1.17.0
func LowMemoryTemporality(k sdkinstrument.Kind) Temporality
func ParseTemporality ¶ added in v1.16.0
func ParseTemporality(str string) (Temporality, bool)
func (Temporality) String ¶
func (t Temporality) String() string
func (Temporality) Valid ¶
func (t Temporality) Valid() bool
type TemporalitySelector ¶
type TemporalitySelector func(sdkinstrument.Kind) Temporality
type TemporalityTrait ¶
type TemporalityTrait interface {
Temporality() Temporality
}