// Code generated by mdatagen. DO NOT EDIT.

package exporterhelper

import (
	"go.opentelemetry.io/collector/exporter/exporterhelper/internal"
	"go.opentelemetry.io/collector/exporter/exporterhelper/internal/queuebatch"
)

// BatchConfig defines a configuration for batching requests based on a timeout and a minimum number of items.
type BatchConfig = queuebatch.BatchConfig

// NewDefaultBatchConfig returns a new BatchConfig with its default values applied.
// Prefer this over an empty struct literal so default changes stay in sync automatically.
func NewDefaultBatchConfig() BatchConfig {
	return queuebatch.NewDefaultBatchConfig()
}

// PartitionConfig defines a configuration for partitioning requests based on metadata keys.
type PartitionConfig = queuebatch.PartitionConfig

// NewDefaultPartitionConfig returns a new PartitionConfig with its default values applied.
// Prefer this over an empty struct literal so default changes stay in sync automatically.
func NewDefaultPartitionConfig() PartitionConfig {
	return queuebatch.NewDefaultPartitionConfig()
}

// QueueBatchConfig defines configuration for queueing and batching for the exporter.
type QueueBatchConfig = queuebatch.Config

// TimeoutConfig a timeout configuration. The timeout applies to individual attempts to send data to the backend.
type TimeoutConfig = internal.TimeoutConfig

// NewDefaultTimeoutConfig returns a new TimeoutConfig with its default values applied.
// Prefer this over an empty struct literal so default changes stay in sync automatically.
func NewDefaultTimeoutConfig() TimeoutConfig {
	return internal.NewDefaultTimeoutConfig()
}
