Documentation
¶
Index ¶
- func LoadContextCache(contextCache map[ContextID]*pcommon.Map, context ContextID) *pcommon.Map
- func ResourceFunctions() map[string]ottl.Factory[ottlresource.TransformContext]
- func ScopeFunctions() map[string]ottl.Factory[ottlscope.TransformContext]
- type ContextID
- type ContextStatements
- type LogParserCollection
- type LogParserCollectionOption
- type LogsConsumer
- type MetricParserCollection
- type MetricParserCollectionOption
- func WithDataPointParser(functions map[string]ottl.Factory[ottldatapoint.TransformContext]) MetricParserCollectionOption
- func WithMetricErrorMode(errorMode ottl.ErrorMode) MetricParserCollectionOption
- func WithMetricParser(functions map[string]ottl.Factory[ottlmetric.TransformContext]) MetricParserCollectionOption
- type MetricsConsumer
- type TraceParserCollection
- type TraceParserCollectionOption
- func WithSpanEventParser(functions map[string]ottl.Factory[ottlspanevent.TransformContext]) TraceParserCollectionOption
- func WithSpanParser(functions map[string]ottl.Factory[ottlspan.TransformContext]) TraceParserCollectionOption
- func WithTraceErrorMode(errorMode ottl.ErrorMode) TraceParserCollectionOption
- type TracesConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadContextCache ¶ added in v0.119.0
LoadContextCache retrieves or creates a context cache map for the given context ID. If the cache is not found, a new map is created and stored in the contextCache map.
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
func (*ContextID) UnmarshalText ¶ added in v0.64.0
type ContextStatements ¶ added in v0.64.0
type ContextStatements struct { Context ContextID `mapstructure:"context"` Conditions []string `mapstructure:"conditions"` Statements []string `mapstructure:"statements"` // When enabled, it allows the statements cache to be shared across all other groups that share the cache. // This feature is not configurable via `mapstructure` and cannot be set in configuration files. SharedCache bool `mapstructure:"-"` }
func (ContextStatements) GetStatements ¶ added in v0.119.0
func (c ContextStatements) GetStatements() []string
type LogParserCollection ¶ added in v0.64.0
type LogParserCollection ottl.ParserCollection[LogsConsumer]
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 (lpc *LogParserCollection) ParseContextStatements(contextStatements ContextStatements) (LogsConsumer, error)
type LogParserCollectionOption ¶ added in v0.64.0
type LogParserCollectionOption ottl.ParserCollectionOption[LogsConsumer]
func WithLogErrorMode ¶ added in v0.73.0
func WithLogErrorMode(errorMode ottl.ErrorMode) LogParserCollectionOption
func WithLogParser ¶ added in v0.65.0
func WithLogParser(functions map[string]ottl.Factory[ottllog.TransformContext]) LogParserCollectionOption
type LogsConsumer ¶ added in v0.119.0
type MetricParserCollection ¶ added in v0.64.0
type MetricParserCollection ottl.ParserCollection[MetricsConsumer]
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 (mpc *MetricParserCollection) ParseContextStatements(contextStatements ContextStatements) (MetricsConsumer, error)
type MetricParserCollectionOption ¶ added in v0.64.0
type MetricParserCollectionOption ottl.ParserCollectionOption[MetricsConsumer]
func WithDataPointParser ¶ added in v0.65.0
func WithDataPointParser(functions map[string]ottl.Factory[ottldatapoint.TransformContext]) MetricParserCollectionOption
func WithMetricErrorMode ¶ added in v0.73.0
func WithMetricErrorMode(errorMode ottl.ErrorMode) MetricParserCollectionOption
func WithMetricParser ¶ added in v0.65.0
func WithMetricParser(functions map[string]ottl.Factory[ottlmetric.TransformContext]) MetricParserCollectionOption
type MetricsConsumer ¶ added in v0.119.0
type TraceParserCollection ¶ added in v0.64.0
type TraceParserCollection ottl.ParserCollection[TracesConsumer]
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 (tpc *TraceParserCollection) ParseContextStatements(contextStatements ContextStatements) (TracesConsumer, error)
type TraceParserCollectionOption ¶ added in v0.64.0
type TraceParserCollectionOption ottl.ParserCollectionOption[TracesConsumer]
func WithSpanEventParser ¶ added in v0.65.0
func WithSpanEventParser(functions map[string]ottl.Factory[ottlspanevent.TransformContext]) TraceParserCollectionOption
func WithSpanParser ¶ added in v0.65.0
func WithSpanParser(functions map[string]ottl.Factory[ottlspan.TransformContext]) TraceParserCollectionOption
func WithTraceErrorMode ¶ added in v0.73.0
func WithTraceErrorMode(errorMode ottl.ErrorMode) TraceParserCollectionOption
Click to show internal directories.
Click to hide internal directories.