So, it is how this problem should be done: calculating the change of $\arg f(z)$ along circular arc and also along straight segment(s). In this rather simple case $f(z)$ is real and does not change sign along straight lines; so the corresponding increment of $\arg f(z)$ is $0$.