Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogsNop ¶
func NewLogsNop() consumer.LogsConsumer
NewLogsNop returns a consumer.LogsConsumer that just drops all received data and returns no error.
func NewMetricsNop ¶
func NewMetricsNop() consumer.MetricsConsumer
NewMetricsNop returns a consumer.MetricsConsumer that just drops all received data and returns no error.
func NewTracesNop ¶
func NewTracesNop() consumer.TracesConsumer
NewTracesNop returns a consumer.TracesConsumer that just drops all received data and returns no error.
Types ¶
type LogsSink ¶
type LogsSink struct {
// contains filtered or unexported fields
}
LogsSink is a consumer.LogsConsumer that acts like a sink that stores all logs and allows querying them for testing.
func (*LogsSink) ConsumeLogs ¶
ConsumeLogs stores logs to this sink.
func (*LogsSink) LogRecordsCount ¶
LogRecordsCount return the number of log records stored by this sink since last Reset.
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 is a consumer.MetricsConsumer that acts like a sink that stores all metrics and allows querying them for testing.
func (*MetricsSink) AllMetrics ¶
func (sme *MetricsSink) AllMetrics() []pdata.Metrics
AllMetrics returns the metrics stored by this sink since last Reset.
func (*MetricsSink) ConsumeMetrics ¶
ConsumeMetrics stores metrics to this sink.
func (*MetricsSink) MetricsCount ¶
func (sme *MetricsSink) MetricsCount() int
MetricsCount return the number of metrics stored by this sink since last Reset.
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 is a consumer.TracesConsumer that acts like a sink that stores all traces and allows querying them for testing.
func (*TracesSink) AllTraces ¶
func (ste *TracesSink) AllTraces() []pdata.Traces
AllTraces returns the traces stored by this sink since last Reset.
func (*TracesSink) ConsumeTraces ¶
ConsumeTraces stores traces to this sink.
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 this sink.