Documentation ¶
Index ¶
- type ErrOrSinkConsumer
- func (esc *ErrOrSinkConsumer) Capabilities() consumer.Capabilities
- func (esc *ErrOrSinkConsumer) ConsumeMetrics(ctx context.Context, md pdata.Metrics) error
- func (esc *ErrOrSinkConsumer) ConsumeTraces(ctx context.Context, td pdata.Traces) error
- func (esc *ErrOrSinkConsumer) Reset()
- func (esc *ErrOrSinkConsumer) SetConsumeError(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrOrSinkConsumer ¶
type ErrOrSinkConsumer struct { *consumertest.TracesSink *consumertest.MetricsSink // contains filtered or unexported fields }
func (*ErrOrSinkConsumer) Capabilities ¶ added in v0.27.0
func (esc *ErrOrSinkConsumer) Capabilities() consumer.Capabilities
func (*ErrOrSinkConsumer) ConsumeMetrics ¶
ConsumeMetrics stores metrics to this sink.
func (*ErrOrSinkConsumer) ConsumeTraces ¶
ConsumeTraces stores traces to this sink.
func (*ErrOrSinkConsumer) Reset ¶
func (esc *ErrOrSinkConsumer) Reset()
Reset deletes any stored in the sinks, resets error to nil.
func (*ErrOrSinkConsumer) SetConsumeError ¶
func (esc *ErrOrSinkConsumer) SetConsumeError(err error)
SetConsumeError sets an error that will be returned by the Consume function.
Click to show internal directories.
Click to hide internal directories.