Documentation ¶
Index ¶
- func NewNopConnectorConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]connector.Factory)
- func NewNopExporterConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]exporter.Factory)
- func NewNopExtensionConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]extension.Factory)
- func NewNopProcessorConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]processor.Factory)
- func NewNopReceiverConfigsAndFactories() (map[component.ID]component.Config, map[component.Type]receiver.Factory)
- type ConnectorBuilder
- func (b *ConnectorBuilder) CreateLogsToLogs(ctx context.Context, set connector.Settings, next consumer.Logs) (connector.Logs, error)
- func (b *ConnectorBuilder) CreateLogsToMetrics(ctx context.Context, set connector.Settings, next consumer.Metrics) (connector.Logs, error)
- func (b *ConnectorBuilder) CreateLogsToProfiles(ctx context.Context, set connector.Settings, next xconsumer.Profiles) (connector.Logs, error)
- func (b *ConnectorBuilder) CreateLogsToTraces(ctx context.Context, set connector.Settings, next consumer.Traces) (connector.Logs, error)
- func (b *ConnectorBuilder) CreateMetricsToLogs(ctx context.Context, set connector.Settings, next consumer.Logs) (connector.Metrics, error)
- func (b *ConnectorBuilder) CreateMetricsToMetrics(ctx context.Context, set connector.Settings, next consumer.Metrics) (connector.Metrics, error)
- func (b *ConnectorBuilder) CreateMetricsToProfiles(ctx context.Context, set connector.Settings, next xconsumer.Profiles) (connector.Metrics, error)
- func (b *ConnectorBuilder) CreateMetricsToTraces(ctx context.Context, set connector.Settings, next consumer.Traces) (connector.Metrics, error)
- func (b *ConnectorBuilder) CreateProfilesToLogs(ctx context.Context, set connector.Settings, next consumer.Logs) (xconnector.Profiles, error)
- func (b *ConnectorBuilder) CreateProfilesToMetrics(ctx context.Context, set connector.Settings, next consumer.Metrics) (xconnector.Profiles, error)
- func (b *ConnectorBuilder) CreateProfilesToProfiles(ctx context.Context, set connector.Settings, next xconsumer.Profiles) (xconnector.Profiles, error)
- func (b *ConnectorBuilder) CreateProfilesToTraces(ctx context.Context, set connector.Settings, next consumer.Traces) (xconnector.Profiles, error)
- func (b *ConnectorBuilder) CreateTracesToLogs(ctx context.Context, set connector.Settings, next consumer.Logs) (connector.Traces, error)
- func (b *ConnectorBuilder) CreateTracesToMetrics(ctx context.Context, set connector.Settings, next consumer.Metrics) (connector.Traces, error)
- func (b *ConnectorBuilder) CreateTracesToProfiles(ctx context.Context, set connector.Settings, next xconsumer.Profiles) (connector.Traces, error)
- func (b *ConnectorBuilder) CreateTracesToTraces(ctx context.Context, set connector.Settings, next consumer.Traces) (connector.Traces, error)
- func (b *ConnectorBuilder) Factory(componentType component.Type) component.Factory
- func (b *ConnectorBuilder) IsConfigured(componentID component.ID) bool
- type ExporterBuilder
- func (b *ExporterBuilder) CreateLogs(ctx context.Context, set exporter.Settings) (exporter.Logs, error)
- func (b *ExporterBuilder) CreateMetrics(ctx context.Context, set exporter.Settings) (exporter.Metrics, error)
- func (b *ExporterBuilder) CreateProfiles(ctx context.Context, set exporter.Settings) (xexporter.Profiles, error)
- func (b *ExporterBuilder) CreateTraces(ctx context.Context, set exporter.Settings) (exporter.Traces, error)
- func (b *ExporterBuilder) Factory(componentType component.Type) component.Factory
- type Extension
- type ExtensionBuilder
- type ProcessorBuilder
- func (b *ProcessorBuilder) CreateLogs(ctx context.Context, set processor.Settings, next consumer.Logs) (processor.Logs, error)
- func (b *ProcessorBuilder) CreateMetrics(ctx context.Context, set processor.Settings, next consumer.Metrics) (processor.Metrics, error)
- func (b *ProcessorBuilder) CreateProfiles(ctx context.Context, set processor.Settings, next xconsumer.Profiles) (xprocessor.Profiles, error)
- func (b *ProcessorBuilder) CreateTraces(ctx context.Context, set processor.Settings, next consumer.Traces) (processor.Traces, error)
- func (b *ProcessorBuilder) Factory(componentType component.Type) component.Factory
- type ReceiverBuilder
- func (b *ReceiverBuilder) CreateLogs(ctx context.Context, set receiver.Settings, next consumer.Logs) (receiver.Logs, error)
- func (b *ReceiverBuilder) CreateMetrics(ctx context.Context, set receiver.Settings, next consumer.Metrics) (receiver.Metrics, error)
- func (b *ReceiverBuilder) CreateProfiles(ctx context.Context, set receiver.Settings, next xconsumer.Profiles) (xreceiver.Profiles, error)
- func (b *ReceiverBuilder) CreateTraces(ctx context.Context, set receiver.Settings, next consumer.Traces) (receiver.Traces, error)
- func (b *ReceiverBuilder) Factory(componentType component.Type) component.Factory
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.
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.
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.
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 ¶
func (b *ProcessorBuilder) CreateLogs(ctx context.Context, set processor.Settings, next consumer.Logs) (processor.Logs, error)
CreateLogs creates a Logs processor based on the settings and config.
func (*ProcessorBuilder) CreateMetrics ¶
func (b *ProcessorBuilder) CreateMetrics(ctx context.Context, set processor.Settings, next consumer.Metrics) (processor.Metrics, error)
CreateMetrics creates a Metrics processor based on the settings and config.
func (*ProcessorBuilder) CreateProfiles ¶ added in v0.109.0
func (b *ProcessorBuilder) CreateProfiles(ctx context.Context, set processor.Settings, next xconsumer.Profiles) (xprocessor.Profiles, error)
CreateProfiles creates a Profiles processor based on the settings and config.
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
func (b *ReceiverBuilder) CreateProfiles(ctx context.Context, set receiver.Settings, next xconsumer.Profiles) (xreceiver.Profiles, error)
CreateProfiles creates a Profiles receiver based on the settings and config.