pmetricutil

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MoveMetricsWithContextIf added in v0.114.0

func MoveMetricsWithContextIf(from, to pmetric.Metrics, f func(pmetric.ResourceMetrics, pmetric.ScopeMetrics, pmetric.Metric) bool)

MoveMetricsWithContextIf calls f sequentially for each Metric present in the first pmetric.Metrics. If f returns true, the element is removed from the first pmetric.Metrics and added to the second pmetric.Metrics. Notably, the Resource and Scope associated with the Metric are created in the second pmetric.Metrics only once. Resources or Scopes are removed from the original if they become empty. All ordering is preserved.

func MoveResourcesIf

func MoveResourcesIf(from, to pmetric.Metrics, f func(pmetric.ResourceMetrics) bool)

MoveResourcesIf calls f sequentially for each ResourceSpans present in the first pmetric.Metrics. If f returns true, the element is removed from the first pmetric.Metrics and added to the second pmetric.Metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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