Europe's biggest economy exported goods worth 1.279 trillion euros ($1.577 trillion) last year, the Federal Statistical Office said. It didn't give a detailed geographical breakdown of the destinations, but said that exports to both European Union countries and nations outside the 28-nation bloc were up 6.3 percent. Exports to the EU, at 750 billion euros, accounted for well over half the total.

Exports have long been a mainstay of the German economy, though strong domestic demand has taken over as the main driver of economic growth. Germany's export strength has brought the country criticism from abroad.

Germany's trade surplus last year came in at 244.9 billion euros, down from the previous year's record of 248.9 billion euros, the statistical office said.

"The discussion about the German trade surplus should ease up" because imports rose faster than exports, said the director general of the Federation of German Industries, Joachim Lang.

He said that "protectionism, a disorderly Brexit and the loss of confidence in free trade and open markets remain dangers" and called on politicians to secure Germany's success on global markets — in particular by quickly ratifying an EU-Canada trade deal and concluding trade negotiations with Mexico and South America's Mercosur bloc.

In December, German exports edged up 0.3 percent compared with the previous month in seasonally and calendar-adjusted terms, while imports were up 1.4 percent.