Complex integral is a generalization of real integral. Look at mathematical formality by disregarding some of the geometrical meaning. This is some sort of abstraction. In general the result is a complex number. Curve length is a real number. So it is not quite calculating curve length. The definition of complex integral given by this lecture is complex line integral or simply complex integral. Use of the fundamental idea of Riemann integral, not Lebesgue integral.