package otel

import "fmt"

// 预定义错误 - 简化版本
var (
	ErrInvalidConfig = func(msg string) error {
		return fmt.Errorf("invalid config: %s", msg)
	}

	ErrInitFailed = func(cause error) error {
		return fmt.Errorf("initialization failed: %w", cause)
	}

	ErrShutdownFailed = func(cause error) error {
		return fmt.Errorf("shutdown failed: %w", cause)
	}

	ErrExporterFailed = func(cause error) error {
		return fmt.Errorf("exporter operation failed: %w", cause)
	}

	ErrProviderNotInitialized = fmt.Errorf("otel provider not initialized")
)
