Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogsNop ¶
func NewLogsNop() consumer.LogsConsumer
NewLogsNop creates an LogsConsumer that just drops the received data.
func NewMetricsNop ¶
func NewMetricsNop() consumer.MetricsConsumer
NewMetricsNop creates an MetricsConsumer that just drops the received data.
func NewTracesNop ¶
func NewTracesNop() consumer.TracesConsumer
NewTracesNop creates an TraceConsumer that just drops the received data.
Types ¶
type LogsSink ¶
type LogsSink struct {
// contains filtered or unexported fields
}
LogsSink acts as a metrics receiver for use in tests.
func (*LogsSink) ConsumeLogs ¶
ConsumeLogData stores traces for tests.
func (*LogsSink) LogRecordsCount ¶
LogRecordsCount return the number of log records sent to the test sing.
func (*LogsSink) SetConsumeError ¶
func (bec *LogsSink) SetConsumeError(err error)
SetConsumeError sets an error that will be returned by the Consume function.
type MetricsSink ¶
type MetricsSink struct {
// contains filtered or unexported fields
}
MetricsSink acts as a metrics receiver for use in tests.
func (*MetricsSink) AllMetrics ¶
func (sme *MetricsSink) AllMetrics() []pdata.Metrics
AllMetrics returns the metrics sent to the test sink.
func (*MetricsSink) ConsumeMetrics ¶
ConsumeMetricsData stores traces for tests.
func (*MetricsSink) MetricsCount ¶
func (sme *MetricsSink) MetricsCount() int
MetricsCount return the number of metrics sent to the test sing.
func (*MetricsSink) SetConsumeError ¶
func (bec *MetricsSink) SetConsumeError(err error)
SetConsumeError sets an error that will be returned by the Consume function.
type TracesSink ¶
type TracesSink struct {
// contains filtered or unexported fields
}
TracesSink acts as a trace receiver for use in tests.
func (*TracesSink) AllTraces ¶
func (ste *TracesSink) AllTraces() []pdata.Traces
AllTraces returns the traces sent to the test sink.
func (*TracesSink) ConsumeTraces ¶
ConsumeTraceData stores traces for tests.
func (*TracesSink) SetConsumeError ¶
func (bec *TracesSink) SetConsumeError(err error)
SetConsumeError sets an error that will be returned by the Consume function.
func (*TracesSink) SpansCount ¶
func (ste *TracesSink) SpansCount() int
SpansCount return the number of spans sent to the test sing.