data

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adder added in v0.6.0

type Adder struct {
	// contains filtered or unexported fields
}

Adder adds (+) datapoints.

func NewAdder added in v0.6.0

func NewAdder(maxBuckets int) Adder

func (Adder) Exponential added in v0.6.0

func (add Adder) Exponential(state, dp pmetric.ExponentialHistogramDataPoint) error

func (Adder) Histograms added in v0.6.0

func (add Adder) Histograms(state, dp pmetric.HistogramDataPoint) error

func (Adder) Numbers added in v0.6.0

func (add Adder) Numbers(state, dp pmetric.NumberDataPoint) error

type Aggregator added in v0.6.0

type Aggregator interface {
	Numbers(state, dp pmetric.NumberDataPoint) error
	Histograms(state, dp pmetric.HistogramDataPoint) error
	Exponential(state, dp pmetric.ExponentialHistogramDataPoint) error
}

Aggregator performs an operation on two datapoints. Given pmetric types are mutable by nature, this logically works as follows:

*state = op(state, dp)

See Adder for an implementation.

Directories

Path Synopsis
Package expo implements various operations on exponential histograms and their bucket counts
Package expo implements various operations on exponential histograms and their bucket counts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL