kubernetes/vendor/go.opentelemetry.io/otel/sdk/trace/tracetest/exporter.go

var _

// NewNoopExporter returns a new no-op exporter.
func NewNoopExporter() *NoopExporter {}

type NoopExporter

// ExportSpans handles export of spans by dropping them.
func (nsb *NoopExporter) ExportSpans(context.Context, []trace.ReadOnlySpan) error {}

// Shutdown stops the exporter by doing nothing.
func (nsb *NoopExporter) Shutdown(context.Context) error {}

var _

// NewInMemoryExporter returns a new InMemoryExporter.
func NewInMemoryExporter() *InMemoryExporter {}

type InMemoryExporter

// ExportSpans handles export of spans by storing them in memory.
func (imsb *InMemoryExporter) ExportSpans(_ context.Context, spans []trace.ReadOnlySpan) error {}

// Shutdown stops the exporter by clearing spans held in memory.
func (imsb *InMemoryExporter) Shutdown(context.Context) error {}

// Reset the current in-memory storage.
func (imsb *InMemoryExporter) Reset() {}

// GetSpans returns the current in-memory stored spans.
func (imsb *InMemoryExporter) GetSpans() SpanStubs {}