Are there any historical articles about the origins of zeta functions of curves over global fields (undoubtedly starting with $\mathbb{Q}$)?  In particular who (and when did this happen) first have the idea of creating such a thing?  Was it by analogy with the zeta functions of number fields?