pushreceiver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 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() otelreceiver.Factory

NewFactory creates a new push receiver factory.

Types

type Factory

type Factory struct {
	otelreceiver.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() component.Config

CreateDefaultConfig creates a default push receiver config.

func (*Factory) CreateLogsReceiver

func (f *Factory) CreateLogsReceiver(ctx context.Context, set otelreceiver.CreateSettings,
	cfg component.Config, nextConsumer consumer.Logs) (otelreceiver.Logs, error)

CreateLogsReceiver returns an error because logs are not supported by push receiver.

func (*Factory) CreateMetricsReceiver

func (f *Factory) CreateMetricsReceiver(ctx context.Context, set otelreceiver.CreateSettings,
	cfg component.Config, nextConsumer consumer.Metrics) (otelreceiver.Metrics, 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

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

LogsReceiverStability implements component.ReceiverFactory.

func (*Factory) MetricsReceiverStability

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

MetricsReceiverStability implements component.ReceiverFactory.

func (*Factory) TracesReceiverStability

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

TracesReceiverStability implements component.ReceiverFactory.

func (Factory) Type

func (f Factory) Type() component.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