builders

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNopConnectorConfigsAndFactories

func NewNopConnectorConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]connector.Factory)

NewNopConnectorConfigsAndFactories returns a configuration and factories that allows building a new nop connector.

func NewNopExporterConfigsAndFactories

func NewNopExporterConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]exporter.Factory)

NewNopExporterConfigsAndFactories returns a configuration and factories that allows building a new nop exporter.

func NewNopExtensionConfigsAndFactories

func NewNopExtensionConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]extension.Factory)

NewNopExtensionConfigsAndFactories returns a configuration and factories that allows building a new nop processor.

func NewNopProcessorConfigsAndFactories

func NewNopProcessorConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]processor.Factory)

NewNopProcessorConfigsAndFactories returns a configuration and factories that allows building a new nop processor.

func NewNopReceiverConfigsAndFactories

func NewNopReceiverConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]receiver.Factory)

NewNopReceiverConfigsAndFactories returns a configuration and factories that allows building a new nop receiver.

Types

type ConnectorBuilder

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

ConnectorBuilder is a helper struct that given a set of Configs and Factories helps with creating connectors.

func NewConnector

func NewConnector(cfgs map[component.ID]component.Config, factories map[component.Type]connector.Factory) *ConnectorBuilder

NewConnector creates a new ConnectorBuilder to help with creating components form a set of configs and factories.

func (*ConnectorBuilder) CreateLogsToLogs

func (b *ConnectorBuilder) CreateLogsToLogs(ctx context.Context, set connector.Settings, next consumer.Logs) (connector.Logs, error)

CreateLogsToLogs creates a Logs connector based on the settings and config.

func (*ConnectorBuilder) CreateLogsToMetrics

func (b *ConnectorBuilder) CreateLogsToMetrics(ctx context.Context, set connector.Settings, next consumer.Metrics) (connector.Logs, error)

CreateLogsToMetrics creates a Logs connector based on the settings and config.

func (*ConnectorBuilder) CreateLogsToProfiles added in v0.109.0

func (b *ConnectorBuilder) CreateLogsToProfiles(ctx context.Context, set connector.Settings, next xconsumer.Profiles) (connector.Logs, error)

CreateLogsToProfiles creates a Logs connector based on the settings and config.

func (*ConnectorBuilder) CreateLogsToTraces

func (b *ConnectorBuilder) CreateLogsToTraces(ctx context.Context, set connector.Settings, next consumer.Traces) (connector.Logs, error)

CreateLogsToTraces creates a Logs connector based on the settings and config.

func (*ConnectorBuilder) CreateMetricsToLogs

func (b *ConnectorBuilder) CreateMetricsToLogs(ctx context.Context, set connector.Settings, next consumer.Logs) (connector.Metrics, error)

CreateMetricsToLogs creates a Metrics connector based on the settings and config.

func (*ConnectorBuilder) CreateMetricsToMetrics

func (b *ConnectorBuilder) CreateMetricsToMetrics(ctx context.Context, set connector.Settings, next consumer.Metrics) (connector.Metrics, error)

CreateMetricsToMetrics creates a Metrics connector based on the settings and config.

func (*ConnectorBuilder) CreateMetricsToProfiles added in v0.109.0

func (b *ConnectorBuilder) CreateMetricsToProfiles(ctx context.Context, set connector.Settings, next xconsumer.Profiles) (connector.Metrics, error)

CreateMetricsToProfiles creates a Metrics connector based on the settings and config.

func (*ConnectorBuilder) CreateMetricsToTraces

func (b *ConnectorBuilder) CreateMetricsToTraces(ctx context.Context, set connector.Settings, next consumer.Traces) (connector.Metrics, error)

CreateMetricsToTraces creates a Metrics connector based on the settings and config.

func (*ConnectorBuilder) CreateProfilesToLogs added in v0.109.0

func (b *ConnectorBuilder) CreateProfilesToLogs(ctx context.Context, set connector.Settings, next consumer.Logs) (xconnector.Profiles, error)

CreateProfilesToLogs creates a Profiles connector based on the settings and config.

func (*ConnectorBuilder) CreateProfilesToMetrics added in v0.109.0

func (b *ConnectorBuilder) CreateProfilesToMetrics(ctx context.Context, set connector.Settings, next consumer.Metrics) (xconnector.Profiles, error)

CreateProfilesToMetrics creates a Profiles connector based on the settings and config.

func (*ConnectorBuilder) CreateProfilesToProfiles added in v0.109.0

func (b *ConnectorBuilder) CreateProfilesToProfiles(ctx context.Context, set connector.Settings, next xconsumer.Profiles) (xconnector.Profiles, error)

CreateProfilesToProfiles creates a Profiles connector based on the settings and config.

func (*ConnectorBuilder) CreateProfilesToTraces added in v0.109.0

func (b *ConnectorBuilder) CreateProfilesToTraces(ctx context.Context, set connector.Settings, next consumer.Traces) (xconnector.Profiles, error)

CreateProfilesToTraces creates a Profiles connector based on the settings and config.

func (*ConnectorBuilder) CreateTracesToLogs

func (b *ConnectorBuilder) CreateTracesToLogs(ctx context.Context, set connector.Settings, next consumer.Logs) (connector.Traces, error)

CreateTracesToLogs creates a Traces connector based on the settings and config.

func (*ConnectorBuilder) CreateTracesToMetrics

func (b *ConnectorBuilder) CreateTracesToMetrics(ctx context.Context, set connector.Settings, next consumer.Metrics) (connector.Traces, error)

CreateTracesToMetrics creates a Traces connector based on the settings and config.

func (*ConnectorBuilder) CreateTracesToProfiles added in v0.109.0

func (b *ConnectorBuilder) CreateTracesToProfiles(ctx context.Context, set connector.Settings, next xconsumer.Profiles) (connector.Traces, error)

CreateTracesToProfiles creates a Traces connector based on the settings and config.

func (*ConnectorBuilder) CreateTracesToTraces

func (b *ConnectorBuilder) CreateTracesToTraces(ctx context.Context, set connector.Settings, next consumer.Traces) (connector.Traces, error)

CreateTracesToTraces creates a Traces connector based on the settings and config.

func (*ConnectorBuilder) Factory

func (b *ConnectorBuilder) Factory(componentType component.Type) component.Factory

func (*ConnectorBuilder) IsConfigured

func (b *ConnectorBuilder) IsConfigured(componentID component.ID) bool

type ExporterBuilder

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

ExporterBuilder is a helper struct that given a set of Configs and Factories helps with creating exporters.

func NewExporter

func NewExporter(cfgs map[component.ID]component.Config, factories map[component.Type]exporter.Factory) *ExporterBuilder

NewExporter creates a new ExporterBuilder to help with creating components form a set of configs and factories.

func (*ExporterBuilder) CreateLogs

func (b *ExporterBuilder) CreateLogs(ctx context.Context, set exporter.Settings) (exporter.Logs, error)

CreateLogs creates a Logs exporter based on the settings and config.

func (*ExporterBuilder) CreateMetrics

func (b *ExporterBuilder) CreateMetrics(ctx context.Context, set exporter.Settings) (exporter.Metrics, error)

CreateMetrics creates a Metrics exporter based on the settings and config.

func (*ExporterBuilder) CreateProfiles added in v0.109.0

func (b *ExporterBuilder) CreateProfiles(ctx context.Context, set exporter.Settings) (xexporter.Profiles, error)

CreateProfiles creates a Profiles exporter based on the settings and config.

func (*ExporterBuilder) CreateTraces

func (b *ExporterBuilder) CreateTraces(ctx context.Context, set exporter.Settings) (exporter.Traces, error)

CreateTraces creates a Traces exporter based on the settings and config.

func (*ExporterBuilder) Factory

func (b *ExporterBuilder) Factory(componentType component.Type) component.Factory

type Extension

type Extension interface {
	Create(context.Context, extension.Settings) (extension.Extension, error)
	Factory(component.Type) component.Factory
}

Extension is an interface that allows using implementations of the builder from different packages.

type ExtensionBuilder

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

ExtensionBuilder is a helper struct that given a set of Configs and Factories helps with creating extensions.

func NewExtension

func NewExtension(cfgs map[component.ID]component.Config, factories map[component.Type]extension.Factory) *ExtensionBuilder

NewExtension creates a new ExtensionBuilder to help with creating components form a set of configs and factories.

func (*ExtensionBuilder) Create

Create creates an extension based on the settings and configs available.

func (*ExtensionBuilder) Factory

func (b *ExtensionBuilder) Factory(componentType component.Type) component.Factory

type ProcessorBuilder

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

ProcessorBuilder processor is a helper struct that given a set of Configs and Factories helps with creating processors.

func NewProcessor

func NewProcessor(cfgs map[component.ID]component.Config, factories map[component.Type]processor.Factory) *ProcessorBuilder

NewProcessor creates a new ProcessorBuilder to help with creating components form a set of configs and factories.

func (*ProcessorBuilder) CreateLogs

CreateLogs creates a Logs processor based on the settings and config.

func (*ProcessorBuilder) CreateMetrics

CreateMetrics creates a Metrics processor based on the settings and config.

func (*ProcessorBuilder) CreateProfiles added in v0.109.0

CreateProfiles creates a Profiles processor based on the settings and config.

func (*ProcessorBuilder) CreateTraces

CreateTraces creates a Traces processor based on the settings and config.

func (*ProcessorBuilder) Factory

func (b *ProcessorBuilder) Factory(componentType component.Type) component.Factory

type ReceiverBuilder

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

ReceiverBuilder receiver is a helper struct that given a set of Configs and Factories helps with creating receivers.

func NewReceiver

func NewReceiver(cfgs map[component.ID]component.Config, factories map[component.Type]receiver.Factory) *ReceiverBuilder

NewReceiver creates a new ReceiverBuilder to help with creating components form a set of configs and factories.

func (*ReceiverBuilder) CreateLogs

func (b *ReceiverBuilder) CreateLogs(ctx context.Context, set receiver.Settings, next consumer.Logs) (receiver.Logs, error)

CreateLogs creates a Logs receiver based on the settings and config.

func (*ReceiverBuilder) CreateMetrics

func (b *ReceiverBuilder) CreateMetrics(ctx context.Context, set receiver.Settings, next consumer.Metrics) (receiver.Metrics, error)

CreateMetrics creates a Metrics receiver based on the settings and config.

func (*ReceiverBuilder) CreateProfiles added in v0.109.0

CreateProfiles creates a Profiles receiver based on the settings and config.

func (*ReceiverBuilder) CreateTraces

func (b *ReceiverBuilder) CreateTraces(ctx context.Context, set receiver.Settings, next consumer.Traces) (receiver.Traces, error)

CreateTraces creates a Traces receiver based on the settings and config.

func (*ReceiverBuilder) Factory

func (b *ReceiverBuilder) Factory(componentType component.Type) component.Factory

Jump to

Keyboard shortcuts

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