In the past, details such as make, model and serial number were destroyed after five days. Only handgun purchases were permanently recorded.

But supporters said that left a huge gap in the law and proposed AB809 to bring "much-needed uniformity," treating long-barreled firearms more like handguns.

Co-sponsors from the San Francisco-based Law Center to Prevent Gun Violence called it "critical" for tracing guns found at crime scenes. Also, the group said it will help police take guns from convicted felons, the mentally ill or others who are not permitted to have them.

Despite the notoriety of handguns, long guns factor in many crimes, the center said.

Many of the state's law enforcement chiefs agreed.

"I don't think you're going to stop violent crime with this but it will be another tool to help fight illegal weapon possession," said Sonoma County sheriff's Capt. Rob Giordano.

The National Rifle Association opposed AB809, saying it only burdens those who obey the law.

Gov. Jerry Brown signed it in 2011 following renewed debate about gun control. Earlier this year, within months of the massacre at Sandy Hook Elementary School, Brown vetoed seven other gun bills, including a ban on semi-automatic rifles with detachable magazines.

Ironically, firearm sales have spiked each time a new law is proposed, gun sellers said.

Fear that the government is trying to limit access to certain models or take guns altogether leads to a run on rifles, shotguns and pistols, said Gabriel Vaughn, owner of Sportsmans Arms.

He said "panic sales" have quadrupled his business in the year since the mass shooting at Newtown, Conn. This week, longtime gun enthusiasts and new owners alike thronged to his store to buy long guns before the new law took effect.

Fred Calonico of Santa Rosa was among those shopping for a new rifle on New Year's Eve. The former Marine peered through the scope of a sniper gun as he contemplated the new law.

"I personally think it's going to get worse from here on out," said Calonico. "It's one more law."

Vaughn said he typically sells 10-15 guns a week but sold 50 on Tuesday. Hot sellers included trigger housings for military-style AR-15 rifles, in part because they contain the serial number.

"I spent a lot of time talking people out of it," Vaughn said. "Some of them had no idea what they were doing."

He said the new law is not that intrusive but coupled with existing laws it is overwhelming. As it stands, customers must wait 10 days to get delivery of any guns, pass criminal and mental health screenings and take a handgun safety test before purchasing any handguns.

AB809 adds another hurdle, he said.

"To all my customers, it is not the end of the world," Vaughn said. "They have nothing to hide. But everybody keeps asking, 'What's next?'"