Documentation ¶
Index ¶
- Constants
- func NewFactory() component.ReceiverFactory
- type Factory
- func (f *Factory) CreateDefaultConfig() config.Receiver
- func (f *Factory) CreateLogsReceiver(ctx context.Context, set component.ReceiverCreateSettings, cfg config.Receiver, ...) (component.LogsReceiver, error)
- func (f *Factory) CreateMetricsReceiver(ctx context.Context, set component.ReceiverCreateSettings, cfg config.Receiver, ...) (component.MetricsReceiver, error)
- func (f *Factory) CreateTracesReceiver(_ context.Context, _ component.ReceiverCreateSettings, _ config.Receiver, ...) (component.TracesReceiver, error)
- func (f *Factory) StabilityLevel(config.DataType) component.StabilityLevel
- func (f Factory) Type() config.Type
Constants ¶
View Source
const (
//TypeStr for push receiver.
TypeStr = "push_receiver"
)
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() component.ReceiverFactory
NewFactory creates a new push receiver factory.
Types ¶
type Factory ¶
Factory is a factory that sneakily exposes a Traces consumer for use within the agent.
func (*Factory) CreateDefaultConfig ¶
CreateDefaultConfig creates a default push receiver config.
func (*Factory) CreateLogsReceiver ¶
func (f *Factory) CreateLogsReceiver(ctx context.Context, set component.ReceiverCreateSettings, cfg config.Receiver, nextConsumer consumer.Logs) (component.LogsReceiver, error)
CreateLogsReceiver returns an error because logs are not supported by push receiver.
func (*Factory) CreateMetricsReceiver ¶
func (f *Factory) CreateMetricsReceiver(ctx context.Context, set component.ReceiverCreateSettings, cfg config.Receiver, nextConsumer consumer.Metrics) (component.MetricsReceiver, error)
CreateMetricsReceiver returns an error because metrics are not supported by push receiver.
func (*Factory) CreateTracesReceiver ¶
func (f *Factory) CreateTracesReceiver( _ context.Context, _ component.ReceiverCreateSettings, _ config.Receiver, c consumer.Traces, ) (component.TracesReceiver, error)
CreateTracesReceiver creates a stub receiver while also sneakily keeping a reference to the provided Traces consumer.
func (*Factory) StabilityLevel ¶ added in v0.27.0
func (f *Factory) StabilityLevel(config.DataType) component.StabilityLevel
StabilityLevel implements component.Factory.
Click to show internal directories.
Click to hide internal directories.