Residents of the California's Bay Area are eyeing the exits.

Some 34 percent of San Francisco-area residents are considering leaving because of high housing costs and traffic, according to a survey by the Bay Area Council.

"We can whine about this, or we can win by solving our traffic and housing problems," Carl Guardino, president of the Silicon Valley Leadership Group, told The Mercury News. "The last time the Bay Area had seemingly solved its traffic problems was the worldwide recession of 2008. A recession is not how we want to solve our traffic and housing problems."

People who have lived in the area for five years or less are those most likely to start packing their bags, according to the report. San Franciscans with lower income and those putting more of their income toward housing expenses were also listed among those prepared to leave.

Residents noted that the most serious problems facing the Bay Area included high cost of living, poverty and income inequality, crime rates and homelessness.

The biggest concern for the Bay Area is the potential loss of its young labor force, though.

"These younger folks, millennials, are our future workforce; this is our labor market; this is our talent pool," Rufus Jeffris, vice president of communications for the Bay Area Council, told CNBC. "So, our economy is fueled by our talent and when folks are saying that they are going to leave, that can create a real problem for us in terms of attracting and retaining the workers and talent that we need to succeed."