func InitConfig(c *agentconfig.AgentConfig) {
	cfgMux.Lock()
	defer cfgMux.Unlock()
	if cfg != nil {
		log.Println("config already initialized, ignoring new config.")
		return
	}
	var ok bool
	cfg, ok = proto.Clone(c).(*agentconfig.AgentConfig)
	if !ok {
		log.Fatal("failed to initialize config.")
	}
}
InitConfig initializes the config with default values
package config
import (
	"log"
	"sync"
	agentconfig "github.com/hypertrace/agent-config/gen/go/v1"
	"github.com/hypertrace/goagent/config"
	"google.golang.org/protobuf/proto"
)
var cfg *agentconfig.AgentConfig
var cfgMux = &sync.Mutex{}