common

package
v0.98.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceFunctions added in v0.64.0

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

func ScopeFunctions added in v0.64.0

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

Types

type ContextID added in v0.64.0

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 added in v0.64.0

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

type ContextStatements added in v0.64.0

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

type LogParserCollection added in v0.64.0

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

func NewLogParserCollection added in v0.64.0

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

func (LogParserCollection) ParseContextStatements added in v0.64.0

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

type LogParserCollectionOption added in v0.64.0

type LogParserCollectionOption func(*LogParserCollection) error

func WithLogErrorMode added in v0.73.0

func WithLogErrorMode(errorMode ottl.ErrorMode) LogParserCollectionOption

func WithLogParser added in v0.65.0

type MetricParserCollection added in v0.64.0

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

func NewMetricParserCollection added in v0.64.0

func NewMetricParserCollection(settings component.TelemetrySettings, options ...MetricParserCollectionOption) (*MetricParserCollection, error)

func (MetricParserCollection) ParseContextStatements added in v0.64.0

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

type MetricParserCollectionOption added in v0.64.0

type MetricParserCollectionOption func(*MetricParserCollection) error

func WithDataPointParser added in v0.65.0

func WithMetricErrorMode added in v0.73.0

func WithMetricErrorMode(errorMode ottl.ErrorMode) MetricParserCollectionOption

func WithMetricParser added in v0.65.0

type TraceParserCollection added in v0.64.0

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

func NewTraceParserCollection added in v0.64.0

func NewTraceParserCollection(settings component.TelemetrySettings, options ...TraceParserCollectionOption) (*TraceParserCollection, error)

func (TraceParserCollection) ParseContextStatements added in v0.64.0

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

type TraceParserCollectionOption added in v0.64.0

type TraceParserCollectionOption func(*TraceParserCollection) error

func WithSpanEventParser added in v0.65.0

func WithSpanParser added in v0.65.0

func WithTraceErrorMode added in v0.73.0

func WithTraceErrorMode(errorMode ottl.ErrorMode) TraceParserCollectionOption

Jump to

Keyboard shortcuts

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