func Initialize(ctx context.Context, appName string, statsHandler stats.Handler) {
	globalstats.Initialize(ctx, globalstats.Config{
		AppName:      appName,
		StatsHandler: statsHandler,
	})
}
Initialize sets up global state for thing including global
metrics globalstats data and possibly more as time goes on.

Deprecated: see InitializeWithConfig
package ctlstore
import (
	"context"
	"github.com/segmentio/ctlstore/pkg/globalstats"
	"github.com/segmentio/stats/v4"
)
type Config struct {
	Stats *globalstats.Config
	LDBVersioning bool
}
var ldbVersioning bool
func init() {
	globalstats.Initialize(context.Background(), globalstats.Config{})
}
func InitializeWithConfig(ctx context.Context, cfg Config) {
	if cfg.Stats != nil {
		globalstats.Initialize(ctx, *cfg.Stats)
	}
	ldbVersioning = cfg.LDBVersioning
}