receiverhelper

package
Version: v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package receiverhelper contains utilities for receivers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(
	cfgType config.Type,
	createDefaultConfig CreateDefaultConfig,
	options ...FactoryOption) component.ReceiverFactory

NewFactory returns a component.ReceiverFactory.

Types

type CreateDefaultConfig

type CreateDefaultConfig func() config.Receiver

CreateDefaultConfig is the equivalent of component.ReceiverFactory.CreateDefaultConfig()

type CreateLogsReceiver added in v0.7.0

CreateLogsReceiver is the equivalent of component.ReceiverFactory.CreateLogsReceiver()

type CreateMetricsReceiver

CreateMetricsReceiver is the equivalent of component.ReceiverFactory.CreateMetricsReceiver()

type CreateTracesReceiver added in v0.25.0

CreateTracesReceiver is the equivalent of component.ReceiverFactory.CreateTracesReceiver()

type FactoryOption

type FactoryOption func(o *factory)

FactoryOption apply changes to ReceiverOptions.

func WithLogs added in v0.7.0

func WithLogs(createLogsReceiver CreateLogsReceiver) FactoryOption

WithLogs overrides the default "error not supported" implementation for CreateLogsReceiver.

func WithMetrics

func WithMetrics(createMetricsReceiver CreateMetricsReceiver) FactoryOption

WithMetrics overrides the default "error not supported" implementation for CreateMetricsReceiver.

func WithTraces

func WithTraces(createTracesReceiver CreateTracesReceiver) FactoryOption

WithTraces overrides the default "error not supported" implementation for CreateTracesReceiver.

Source Files

Jump to

Keyboard shortcuts

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