package batchtraces

import (
	

	
)

// Exporter sends a batch of finished span records to a downstream destination.
// Implementations are synchronous and perform a single attempt; retries and
// backoff are composed by wrapping Exporter.
type Exporter interface {
	// Export sends batch to the destination.
	Export(ctx context.Context, batch []traces.Record) error
}

// ExporterFunc is a function that implements the [Exporter] interface.
type ExporterFunc func(ctx context.Context, batch []traces.Record) error

// Export implements the [Exporter] interface.
func ( ExporterFunc) ( context.Context,  []traces.Record) error {
	return (, )
}