Documentation ¶
Index ¶
- func MakeFactoryMap(factories ...Factory) (map[component.Type]Factory, error)
- type Builderdeprecated
- func (b *Builder) CreateLogs(ctx context.Context, set Settings, next consumer.Logs) (Logs, error)
- func (b *Builder) CreateMetrics(ctx context.Context, set Settings, next consumer.Metrics) (Metrics, error)
- func (b *Builder) CreateTraces(ctx context.Context, set Settings, next consumer.Traces) (Traces, error)
- func (b *Builder) Factory(componentType component.Type) component.Factory
- type CreateLogsFunc
- type CreateMetricsFunc
- type CreateTracesFunc
- type Factory
- type FactoryOption
- type Logs
- type Metrics
- type Settings
- type Traces
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder
deprecated
type Builder struct {
// contains filtered or unexported fields
}
Builder processor is a helper struct that given a set of Configs and Factories helps with creating processors.
Deprecated: [v0.108.0] this builder is being internalized within the service module, and will be removed soon.
func NewBuilder
deprecated
func NewBuilder(cfgs map[component.ID]component.Config, factories map[component.Type]Factory) *Builder
NewBuilder creates a new processor.Builder to help with creating components form a set of configs and factories.
Deprecated: [v0.108.0] this builder is being internalized within the service module, and will be removed soon.
func (*Builder) CreateLogs ¶
CreateLogs creates a Logs processor based on the settings and config.
func (*Builder) CreateMetrics ¶
func (b *Builder) CreateMetrics(ctx context.Context, set Settings, next consumer.Metrics) (Metrics, error)
CreateMetrics creates a Metrics processor based on the settings and config.
type CreateLogsFunc ¶
type CreateLogsFunc = internal.CreateLogsFunc
CreateLogsFunc is the equivalent of Factory.CreateLogs().
type CreateMetricsFunc ¶
type CreateMetricsFunc = internal.CreateMetricsFunc
CreateMetricsFunc is the equivalent of Factory.CreateMetrics().
type CreateTracesFunc ¶
type CreateTracesFunc = internal.CreateTracesFunc
CreateTracesFunc is the equivalent of Factory.CreateTraces().
type Factory ¶
Factory is Factory interface for processors.
This interface cannot be directly implemented. Implementations must use the NewProcessorFactory to implement it.
func NewFactory ¶
func NewFactory(cfgType component.Type, createDefaultConfig component.CreateDefaultConfigFunc, options ...FactoryOption) Factory
NewFactory returns a Factory.
type FactoryOption ¶
type FactoryOption = internal.FactoryOption
FactoryOption apply changes to Options.
func WithLogs ¶
func WithLogs(createLogs CreateLogsFunc, sl component.StabilityLevel) FactoryOption
WithLogs overrides the default "error not supported" implementation for CreateLogs and the default "undefined" stability level.
func WithMetrics ¶
func WithMetrics(createMetrics CreateMetricsFunc, sl component.StabilityLevel) FactoryOption
WithMetrics overrides the default "error not supported" implementation for CreateMetrics and the default "undefined" stability level.
func WithTraces ¶
func WithTraces(createTraces CreateTracesFunc, sl component.StabilityLevel) FactoryOption
WithTraces overrides the default "error not supported" implementation for CreateTraces and the default "undefined" stability level.
Directories ¶
Path | Synopsis |
---|---|
batchprocessor
module
|
|
memorylimiterprocessor
module
|
|
processorprofiles
module
|
|