filterottl

package
v0.116.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoolExprForDataPoint

NewBoolExprForDataPoint creates a BoolExpr[ottldatapoint.TransformContext] that will return true if any of the given OTTL conditions evaluate to true. The passed in functions should use the ottldatapoint.TransformContext. If a function named `match` is not present in the function map it will be added automatically so that parsing works as expected

func NewBoolExprForLog

func NewBoolExprForLog(conditions []string, functions map[string]ottl.Factory[ottllog.TransformContext], errorMode ottl.ErrorMode, set component.TelemetrySettings) (*ottl.ConditionSequence[ottllog.TransformContext], error)

NewBoolExprForLog creates a BoolExpr[ottllog.TransformContext] that will return true if any of the given OTTL conditions evaluate to true. The passed in functions should use the ottllog.TransformContext. If a function named `match` is not present in the function map it will be added automatically so that parsing works as expected

func NewBoolExprForMetric

NewBoolExprForMetric creates a BoolExpr[ottlmetric.TransformContext] that will return true if any of the given OTTL conditions evaluate to true. The passed in functions should use the ottlmetric.TransformContext. If a function named `match` is not present in the function map it will be added automatically so that parsing works as expected

func NewBoolExprForResource added in v0.81.0

NewBoolExprForResource creates a BoolExpr[ottlresource.TransformContext] that will return true if any of the given OTTL conditions evaluate to true. The passed in functions should use the ottlresource.TransformContext. If a function named `match` is not present in the function map it will be added automatically so that parsing works as expected

func NewBoolExprForScope added in v0.101.0

func NewBoolExprForScope(conditions []string, functions map[string]ottl.Factory[ottlscope.TransformContext], errorMode ottl.ErrorMode, set component.TelemetrySettings) (*ottl.ConditionSequence[ottlscope.TransformContext], error)

NewBoolExprForScope creates a BoolExpr[ottlscope.TransformContext] that will return true if any of the given OTTL conditions evaluate to true. The passed in functions should use the ottlresource.TransformContext. If a function named `match` is not present in the function map it will be added automatically so that parsing works as expected

func NewBoolExprForSpan

func NewBoolExprForSpan(conditions []string, functions map[string]ottl.Factory[ottlspan.TransformContext], errorMode ottl.ErrorMode, set component.TelemetrySettings) (*ottl.ConditionSequence[ottlspan.TransformContext], error)

NewBoolExprForSpan creates a BoolExpr[ottlspan.TransformContext] that will return true if any of the given OTTL conditions evaluate to true. The passed in functions should use the ottlspan.TransformContext. If a function named `match` is not present in the function map it will be added automatically so that parsing works as expected

func NewBoolExprForSpanEvent

NewBoolExprForSpanEvent creates a BoolExpr[ottlspanevent.TransformContext] that will return true if any of the given OTTL conditions evaluate to true. The passed in functions should use the ottlspanevent.TransformContext. If a function named `match` is not present in the function map it will be added automatically so that parsing works as expected

func NewLogSkipExprBridge added in v0.81.0

func NewLogSkipExprBridge(mc *filterconfig.MatchConfig) (expr.BoolExpr[ottllog.TransformContext], error)

func NewResourceSkipExprBridge added in v0.81.0

func NewResourceSkipExprBridge(mc *filterconfig.MatchConfig) (expr.BoolExpr[ottlresource.TransformContext], error)

func NewSpanSkipExprBridge added in v0.79.0

func NewSpanSkipExprBridge(mc *filterconfig.MatchConfig) (expr.BoolExpr[ottlspan.TransformContext], error)

func StandardDataPointFuncs

func StandardDataPointFuncs() map[string]ottl.Factory[ottldatapoint.TransformContext]

func StandardLogFuncs

func StandardLogFuncs() map[string]ottl.Factory[ottllog.TransformContext]

func StandardMetricFuncs

func StandardMetricFuncs() map[string]ottl.Factory[ottlmetric.TransformContext]

func StandardResourceFuncs added in v0.81.0

func StandardResourceFuncs() map[string]ottl.Factory[ottlresource.TransformContext]

func StandardScopeFuncs added in v0.101.0

func StandardScopeFuncs() map[string]ottl.Factory[ottlscope.TransformContext]

func StandardSpanEventFuncs

func StandardSpanEventFuncs() map[string]ottl.Factory[ottlspanevent.TransformContext]

func StandardSpanFuncs

func StandardSpanFuncs() map[string]ottl.Factory[ottlspan.TransformContext]

Types

This section is empty.

Jump to

Keyboard shortcuts

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