metrics

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Each

func Each(metrics pmetric.Metrics, fn func(m Metric))

func Filter

func Filter(metrics pmetric.Metrics, fn func(m Metric) bool)

Types

type Data

type Data[D data.Point[D]] interface {
	At(i int) D
	Len() int
	Ident() Ident
}

type ExpHistogram

type ExpHistogram Metric

func (ExpHistogram) At

func (ExpHistogram) Ident

func (s ExpHistogram) Ident() Ident

func (ExpHistogram) Len

func (s ExpHistogram) Len() int

type Histogram

type Histogram Metric

func (Histogram) At

func (s Histogram) At(i int) data.Histogram

func (Histogram) Ident

func (s Histogram) Ident() Ident

func (Histogram) Len

func (s Histogram) Len() int

type Ident

type Ident = identity.Metric

type Metric

type Metric struct {
	pmetric.Metric
	// contains filtered or unexported fields
}

func From

func (*Metric) Ident

func (m *Metric) Ident() Ident

type Sum

type Sum Metric

func (Sum) At

func (s Sum) At(i int) data.Number

func (Sum) Ident

func (s Sum) Ident() Ident

func (Sum) Len

func (s Sum) Len() int

Jump to

Keyboard shortcuts

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