Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParser ¶
func NewParser(functions map[string]ottl.Factory[TransformContext], telemetrySettings component.TelemetrySettings, options ...Option) (ottl.Parser[TransformContext], error)
func NewStatements ¶ added in v0.72.0
func NewStatements(statements []*ottl.Statement[TransformContext], telemetrySettings component.TelemetrySettings, options ...StatementsOption) ottl.Statements[TransformContext]
Types ¶
type Option ¶ added in v0.70.0
type Option func(*ottl.Parser[TransformContext])
type StatementsOption ¶ added in v0.72.0
type StatementsOption func(*ottl.Statements[TransformContext])
func WithErrorMode ¶ added in v0.72.0
func WithErrorMode(errorMode ottl.ErrorMode) StatementsOption
type TransformContext ¶
type TransformContext struct {
// contains filtered or unexported fields
}
func NewTransformContext ¶
func NewTransformContext(resource pcommon.Resource) TransformContext
func (TransformContext) GetResource ¶
func (tCtx TransformContext) GetResource() pcommon.Resource
Click to show internal directories.
Click to hide internal directories.