code: func producerIsConfigured(name string, cfg Config) bool {
  	s := reflect.ValueOf(cfg.Producers)
  	cfgType := s.Type()
  	for i := 0; i < s.NumField(); i++ {
  		if strings.Split(cfgType.Field(i).Tag.Get("yaml"), ",")[0] == name {
  			return true
  		}
  	}
  	return false
  }
docs: // producerIsConfigured analyzes the ProducersConfig struct and determines if
  // configuration exists for a given producer by name (i.e., is the "http"
  // producer configured?). If a configuration exists, this function will return
  // true, as a configured producer is an enabled one.