package aggregator

import "go.opentelemetry.io/otel/sdk/metric/aggregator"

Index

Functions

func NewInconsistentAggregatorError

func NewInconsistentAggregatorError(a1, a2 export.Aggregator) error

NewInconsistentAggregatorError formats an error describing an attempt to Checkpoint or Merge different-type aggregators. The result can be unwrapped as an ErrInconsistentType.

func RangeTest

func RangeTest(number metric.Number, descriptor *metric.Descriptor) error

RangeTest is a commmon routine for testing for valid input values. This rejects NaN values. This rejects negative values when the metric instrument does not support negative values, including monotonic counter metrics and absolute ValueRecorder metrics.

Source Files

aggregator.go

Directories

PathSynopsis
metric/aggregator/aggregatortest
metric/aggregator/array
metric/aggregator/ddsketch
metric/aggregator/histogram
metric/aggregator/lastvalue
metric/aggregator/minmaxsumcount
metric/aggregator/sum
Version
v0.11.0
Published
Aug 25, 2020
Platform
js/wasm
Imports
5 packages
Last checked
22 minutes ago

Tools for package owners.