z[t_] := Exp[I t];
dt = D[z[t], t]
Integrate[(1/z[t]) dt, {t, 0, 2 Pi}]
Or if you do not want to use functions, use direct expressions:
z = Exp[I t];
dtdz = D[z, t];
Integrate[(1/z) dtdz, {t, 0, 2 Pi}]
The idea is to convert it to complex contour integration.