Back to godoc.org
go.opentelemetry.io/collector/consumer

package consumer

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Overview

Package consumer contains interfaces that receive and process consumerdata.

Index

type LogConsumer

type LogConsumer interface {
	// ConsumeLogs receives data.Logs for processing.
	ConsumeLogs(ctx context.Context, ld data.Logs) error
}

LogConsumer is an interface that receives data.Logs, processes it as needed, and sends it to the next processing node if any or to the destination.

type MetricsConsumer

type MetricsConsumer interface {
	MetricsConsumerBase
	ConsumeMetrics(ctx context.Context, md pdata.Metrics) error
}

MetricsConsumer is the new metrics consumer interface that receives pdata.MetricData, processes it as needed, and sends it to the next processing node if any or to the destination.

type MetricsConsumerBase

type MetricsConsumerBase interface{}

MetricsConsumerBase defines a common interface for MetricsConsumerOld and MetricsConsumer.

type MetricsConsumerOld

type MetricsConsumerOld interface {
	MetricsConsumerBase
	ConsumeMetricsData(ctx context.Context, md consumerdata.MetricsData) error
}

MetricsConsumerOld is an interface that receives consumerdata.MetricsData, process it as needed, and sends it to the next processing node if any or to the destination.

ConsumeMetricsData receives consumerdata.MetricsData for processing by the MetricsConsumer.

type TraceConsumer

type TraceConsumer interface {
	TraceConsumerBase
	// ConsumeTraces receives pdata.Traces for processing.
	ConsumeTraces(ctx context.Context, td pdata.Traces) error
}

TraceConsumer is an interface that receives pdata.Traces, processes it as needed, and sends it to the next processing node if any or to the destination.

type TraceConsumerBase

type TraceConsumerBase interface{}

TraceConsumerBase defines a common interface for TraceConsumerOld and TraceConsumer.

type TraceConsumerOld

type TraceConsumerOld interface {
	TraceConsumerBase
	ConsumeTraceData(ctx context.Context, td consumerdata.TraceData) error
}

TraceConsumerOld is an interface that receives consumerdata.TraceData, process it as needed, and sends it to the next processing node if any or to the destination.

ConsumeTraceData receives consumerdata.TraceData for processing by the TraceConsumer.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier