Documentation ¶
Overview ¶
Package filtermetric is a helper package for processing metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UseOTTLBridge = featuregate.GlobalRegistry().MustRegister( "filter.filtermetric.useOTTLBridge", featuregate.StageAlpha, featuregate.WithRegisterDescription("When enabled, filtermetric will convert filtermetric configuration to OTTL and use filterottl evaluation"), featuregate.WithRegisterReferenceURL("https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/18642"), )
Functions ¶
func NewSkipExpr ¶
func NewSkipExpr(include *filterconfig.MetricMatchProperties, exclude *filterconfig.MetricMatchProperties) (expr.BoolExpr[ottlmetric.TransformContext], error)
NewSkipExpr creates a BoolExpr that on evaluation returns true if a metric should NOT be processed or kept. The logic determining if a metric should be processed is based on include and exclude settings. Include properties are checked before exclude settings are checked.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.