pushreceiver

package
v0.34.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

type Factory struct {
	component.Factory
	Consumer consumer.Traces
}

Factory is a factory that sneakily exposes a Traces consumer for use within the agent.

func (*Factory) CreateDefaultConfig

func (f *Factory) CreateDefaultConfig() config.Receiver

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

CreateTracesReceiver creates a stub receiver while also sneakily keeping a reference to the provided Traces consumer.

func (*Factory) LogsReceiverStability added in v0.29.0

func (f *Factory) LogsReceiverStability() component.StabilityLevel

LogsReceiverStability implements component.ReceiverFactory.

func (*Factory) MetricsReceiverStability added in v0.29.0

func (f *Factory) MetricsReceiverStability() component.StabilityLevel

MetricsReceiverStability implements component.ReceiverFactory.

func (*Factory) TracesReceiverStability added in v0.29.0

func (f *Factory) TracesReceiverStability() component.StabilityLevel

TracesReceiverStability implements component.ReceiverFactory.

func (Factory) Type

func (f Factory) Type() config.Type

Type returns the receiver type that PushReceiverFactory produces

Jump to

Keyboard shortcuts

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