Documentation ¶
Index ¶
- func NewBoolExprForDataPoint(conditions []string, ...) (*ottl.ConditionSequence[ottldatapoint.TransformContext], error)
- func NewBoolExprForLog(conditions []string, ...) (*ottl.ConditionSequence[ottllog.TransformContext], error)
- func NewBoolExprForMetric(conditions []string, ...) (*ottl.ConditionSequence[ottlmetric.TransformContext], error)
- func NewBoolExprForResource(conditions []string, ...) (*ottl.ConditionSequence[ottlresource.TransformContext], error)
- func NewBoolExprForScope(conditions []string, ...) (*ottl.ConditionSequence[ottlscope.TransformContext], error)
- func NewBoolExprForSpan(conditions []string, ...) (*ottl.ConditionSequence[ottlspan.TransformContext], error)
- func NewBoolExprForSpanEvent(conditions []string, ...) (*ottl.ConditionSequence[ottlspanevent.TransformContext], error)
- func NewLogSkipExprBridge(mc *filterconfig.MatchConfig) (expr.BoolExpr[ottllog.TransformContext], error)
- func NewMetricSkipExprBridge(include *filterconfig.MetricMatchProperties, ...) (expr.BoolExpr[ottlmetric.TransformContext], error)
- func NewResourceSkipExprBridge(mc *filterconfig.MatchConfig) (expr.BoolExpr[ottlresource.TransformContext], error)
- func NewSpanSkipExprBridge(mc *filterconfig.MatchConfig) (expr.BoolExpr[ottlspan.TransformContext], error)
- func StandardDataPointFuncs() map[string]ottl.Factory[ottldatapoint.TransformContext]
- func StandardLogFuncs() map[string]ottl.Factory[ottllog.TransformContext]
- func StandardMetricFuncs() map[string]ottl.Factory[ottlmetric.TransformContext]
- func StandardResourceFuncs() map[string]ottl.Factory[ottlresource.TransformContext]
- func StandardScopeFuncs() map[string]ottl.Factory[ottlscope.TransformContext]
- func StandardSpanEventFuncs() map[string]ottl.Factory[ottlspanevent.TransformContext]
- func StandardSpanFuncs() map[string]ottl.Factory[ottlspan.TransformContext]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBoolExprForDataPoint ¶
func NewBoolExprForDataPoint(conditions []string, functions map[string]ottl.Factory[ottldatapoint.TransformContext], errorMode ottl.ErrorMode, set component.TelemetrySettings) (*ottl.ConditionSequence[ottldatapoint.TransformContext], error)
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 ¶
func NewBoolExprForMetric(conditions []string, functions map[string]ottl.Factory[ottlmetric.TransformContext], errorMode ottl.ErrorMode, set component.TelemetrySettings) (*ottl.ConditionSequence[ottlmetric.TransformContext], error)
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
func NewBoolExprForResource(conditions []string, functions map[string]ottl.Factory[ottlresource.TransformContext], errorMode ottl.ErrorMode, set component.TelemetrySettings) (*ottl.ConditionSequence[ottlresource.TransformContext], error)
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 ¶
func NewBoolExprForSpanEvent(conditions []string, functions map[string]ottl.Factory[ottlspanevent.TransformContext], errorMode ottl.ErrorMode, set component.TelemetrySettings) (*ottl.ConditionSequence[ottlspanevent.TransformContext], error)
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 NewMetricSkipExprBridge ¶ added in v0.81.0
func NewMetricSkipExprBridge(include *filterconfig.MetricMatchProperties, exclude *filterconfig.MetricMatchProperties) (expr.BoolExpr[ottlmetric.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.