connectortest

package
v0.91.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogsRouter added in v0.81.0

func NewLogsRouter(opts ...LogsRouterOption) connector.LogsRouter

NewLogsRouter returns a connector.LogsRouter with sinks based on the options provided

func NewMetricsRouter added in v0.81.0

func NewMetricsRouter(opts ...MetricsRouterOption) connector.MetricsRouter

NewMetricsRouter returns a connector.MetricsRouter with sinks based on the options provided

func NewNopBuilder

func NewNopBuilder() *connector.Builder

NewNopBuilder returns a connector.Builder that constructs nop receivers.

func NewNopCreateSettings

func NewNopCreateSettings() connector.CreateSettings

NewNopCreateSettings returns a new nop settings for Create* functions.

func NewNopFactory

func NewNopFactory() connector.Factory

NewNopFactory returns a connector.Factory that constructs nop processors.

func NewTracesRouter added in v0.81.0

func NewTracesRouter(opts ...TracesRouterOption) connector.TracesRouter

NewTracesRouter returns a connector.TracesRouter with sinks based on the options provided

Types

type LogsRouterOption added in v0.81.0

type LogsRouterOption struct {
	// contains filtered or unexported fields
}

func WithLogsSink added in v0.81.0

func WithLogsSink(id component.ID, sink *consumertest.LogsSink) LogsRouterOption

WithLogsSink adds a consumer to a connector.LogsRouter

func WithNopLogs added in v0.81.0

func WithNopLogs(id component.ID) LogsRouterOption

WithNopLogs creates a nop consumer for a connector.LogsRouter

type MetricsRouterOption added in v0.81.0

type MetricsRouterOption struct {
	// contains filtered or unexported fields
}

func WithMetricsSink added in v0.81.0

func WithMetricsSink(id component.ID, sink *consumertest.MetricsSink) MetricsRouterOption

WithMetricsSink adds a consumer to a connector.MetricsRouter

func WithNopMetrics added in v0.81.0

func WithNopMetrics(id component.ID) MetricsRouterOption

WithNopMetrics creates a nop consumer for a connector.MetricsRouter

type TracesRouterOption added in v0.81.0

type TracesRouterOption struct {
	// contains filtered or unexported fields
}

func WithNopTraces added in v0.81.0

func WithNopTraces(id component.ID) TracesRouterOption

WithNopTraces creates a nop consumer for a connector.TracesRouter

func WithTracesSink added in v0.81.0

func WithTracesSink(id component.ID, sink *consumertest.TracesSink) TracesRouterOption

WithTracesSink adds a consumer to a connector.TracesRouter

Jump to

Keyboard shortcuts

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