func NewConfig()

in spectator/config.go [35:54]


func NewConfig(
	location string, // defaults to `udp`
	extraCommonTags map[string]string, // defaults to empty map
	log logger.Logger, // defaults to default logger
) (*Config, error) {
	location, err := calculateLocation(location)
	if err != nil {
		return nil, err
	}

	mergedTags := calculateExtraCommonTags(extraCommonTags)

	lg := calculateLogger(log)

	return &Config{
		location:        location,
		extraCommonTags: mergedTags,
		log:             lg,
	}, nil
}