Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyMutator = func(pmetric.NumberDataPoint) {}
EmptyMutator is a no-op mutator.
Functions ¶
func Add ¶
func Add( ms pmetric.MetricSlice, mutator func(dp pmetric.NumberDataPoint), metrics ...Metric, )
Add adds a list of remapped OTel metric to the give MetricSlice.
func ChainedMutator ¶ added in v0.7.0
func ChainedMutator(fs ...func(pmetric.NumberDataPoint)) func(pmetric.NumberDataPoint)
ChainedMutator combines multiple mutators into a single mutator.
Types ¶
type Metric ¶
type Metric struct { IntValue *int64 DoubleValue *float64 Name string Timestamp pcommon.Timestamp StartTimestamp pcommon.Timestamp DataType pmetric.MetricType }
Metric is a simplified representation of a remapped OTel metric.
Click to show internal directories.
Click to hide internal directories.