Documentation ¶
Index ¶
- func NewLogsRouter(opts ...LogsRouterOption) connector.LogsRouter
- func NewMetricsRouter(opts ...MetricsRouterOption) connector.MetricsRouter
- func NewNopBuilder() *connector.Builder
- func NewNopCreateSettings() connector.CreateSettings
- func NewNopFactory() connector.Factory
- func NewTracesRouter(opts ...TracesRouterOption) connector.TracesRouter
- type LogsRouterOption
- type MetricsRouterOption
- type TracesRouterOption
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 ¶
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 ¶
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