filterottl

package
v0.0.0-...-8ff3c68 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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) (expr.BoolExpr[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 `drop` 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) (expr.BoolExpr[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 `drop` 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) (expr.BoolExpr[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 `drop` 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) (expr.BoolExpr[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 `drop` 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) (expr.BoolExpr[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 `drop` is not present in the function map it will be added automatically so that parsing works as expected

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 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