common

package
v0.144.12 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceFunctions

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

func ScopeFunctions

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

Types

type ContextID

type ContextID string
const (
	Resource  ContextID = "resource"
	Scope     ContextID = "scope"
	Span      ContextID = "span"
	SpanEvent ContextID = "spanevent"
	Metric    ContextID = "metric"
	DataPoint ContextID = "datapoint"
	Log       ContextID = "log"
)

func (*ContextID) UnmarshalText

func (c *ContextID) UnmarshalText(text []byte) error

type ContextStatements

type ContextStatements struct {
	Context    ContextID `mapstructure:"context"`
	Statements []string  `mapstructure:"statements"`
}

type LogParserCollection

type LogParserCollection struct {
	// contains filtered or unexported fields
}

func NewLogParserCollection

func NewLogParserCollection(settings component.TelemetrySettings, options ...LogParserCollectionOption) (*LogParserCollection, error)

func (LogParserCollection) ParseContextStatements

func (pc LogParserCollection) ParseContextStatements(contextStatements ContextStatements) (consumer.Logs, error)

type LogParserCollectionOption

type LogParserCollectionOption func(*LogParserCollection) error

func WithLogErrorMode

func WithLogErrorMode(errorMode ottl.ErrorMode) LogParserCollectionOption

type MetricParserCollection

type MetricParserCollection struct {
	// contains filtered or unexported fields
}

func (MetricParserCollection) ParseContextStatements

func (pc MetricParserCollection) ParseContextStatements(contextStatements ContextStatements) (consumer.Metrics, error)

type MetricParserCollectionOption

type MetricParserCollectionOption func(*MetricParserCollection) error

func WithMetricErrorMode

func WithMetricErrorMode(errorMode ottl.ErrorMode) MetricParserCollectionOption

type TraceParserCollection

type TraceParserCollection struct {
	// contains filtered or unexported fields
}

func (TraceParserCollection) ParseContextStatements

func (pc TraceParserCollection) ParseContextStatements(contextStatements ContextStatements) (consumer.Traces, error)

type TraceParserCollectionOption

type TraceParserCollectionOption func(*TraceParserCollection) error

func WithTraceErrorMode

func WithTraceErrorMode(errorMode ottl.ErrorMode) TraceParserCollectionOption

Jump to

Keyboard shortcuts

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