otel: go.opentelemetry.io/otel/exporter/metric/test Index | Files

package test

import "go.opentelemetry.io/otel/exporter/metric/test"

Index

Package Files

test.go

type CheckpointSet Uses

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

func NewCheckpointSet Uses

func NewCheckpointSet(encoder export.LabelEncoder) *CheckpointSet

NewCheckpointSet returns a test CheckpointSet that new records could be added. Records are grouped by their LabelSet.

func (*CheckpointSet) Add Uses

func (p *CheckpointSet) Add(desc *export.Descriptor, newAgg export.Aggregator, labels ...core.KeyValue) (agg export.Aggregator, added bool)

Add a new descriptor to a Checkpoint.

If there is an existing record with the same descriptor and LabelSet the stored aggregator will be returned and should be merged.

func (*CheckpointSet) AddCounter Uses

func (p *CheckpointSet) AddCounter(desc *export.Descriptor, v float64, labels ...core.KeyValue)

func (*CheckpointSet) AddGauge Uses

func (p *CheckpointSet) AddGauge(desc *export.Descriptor, v float64, labels ...core.KeyValue)

func (*CheckpointSet) AddMeasure Uses

func (p *CheckpointSet) AddMeasure(desc *export.Descriptor, v float64, labels ...core.KeyValue)

func (*CheckpointSet) ForEach Uses

func (p *CheckpointSet) ForEach(f func(export.Record))

func (*CheckpointSet) Reset Uses

func (p *CheckpointSet) Reset()

Package test imports 6 packages (graph). Updated 2020-01-29. Refresh now. Tools for package owners.