To understand what is going on here let us consider the following simpler integral
$$\int_C \frac 1 z dz$$
where $C$ is the unit circle taken with positive orientation. It is parameterized by $z : [0,2\pi] \to \mathbb C, z(t) = e^{it}$. As we know
$$\int_C \frac 1 z dz = \int_0^{2\pi} \frac{1}{z(t)}z'(t) dt = \int_0^{2\pi} i dt = 2\pi i .$$
Concerning the last equation let us observe that the constant function $c(t) \equiv i$ has the antiderivative $\iota(t) = it$ so that $\int_0^{2\pi} i dt = \iota(2\pi) - \iota(0) = 2\pi i - 0 = 2\pi i$ by the FTC.
On the other hand, we can also consider the integral $\int_0^{2\pi} \frac{z'(t)}{z(t)} dt$. Without knowing what $z(t)$ is, one can argue that $(\log \circ z)'(t) = \log'(z(t))z'(t) = \frac{z'(t)}{z(t)}$ (chain rule). Thus $\log \circ z$ seems to be an antiderivative of $\frac{z'}{z}$ which seems to be imply
$$\int_0^{2\pi} \frac{z'(t)}{z(t)} dt = \log(z(2\pi)) - \log(z(0)) = 0 $$
because $z(t)$ is a closed path. This is what WolframAlpha seems to suggest.
But wait: Where precisely is the function $\log$ defined? In order that the FTC applies, the function $\log \circ z$ must be defined on $[0,2\pi]$, hence $\log$ must be defined for all $w = z(t)$ with $t \in [0,2\pi]$, i.e. for all $w$ on the unit circle $S^1$. Actually it must be defined on an open neighborhood $U^1$ of $S^1$ and must be complex differentiable on $U^1$.
It is well-known that no such logarithm function exists. We can only say that there are holomorphic logarithm functions on each sliced plane (or more generally, as Paul Frost wrote in his answer, on each simply connected $U \subset \mathbb C \setminus \{0\})$. For example we have the principal branch $\operatorname{Log}$ which is defined an $\mathbb C \setminus (-\infty, 0]$.
Let us assume for a moment that there is a holomorphic logarithm $\log : U^1 \to \mathbb C$ as described above. Then both $\iota$ and $\log \circ z$ are antiderivatives of $c(t) \equiv i$. Hence $\phi = \log \circ z - \iota$ must be constant on $[0,2\pi]$. This implies $$0 = \phi(0) = \phi(2\pi) = -2\pi$$
which is a contradiction. Actually this is a proof of the non-existence of $\log : U^1 \to \mathbb C$.
However, working with logarithms on sliced planes is sufficient. Indeed
$$\int_0^{2\pi} \frac{z'(t)}{z(t)} dt = \lim_{\epsilon \to 0} \int_0^{2\pi -\epsilon} \frac{z'(t)}{z(t)} dt .$$
Taking a branch cut slightly below the positive $x$-axis, we get a branch $\log$ of the logarithm which is defined for all $e^{it}$ with $t \in [0,2\pi-\epsilon]$. Actually we can achieve $\log (e^{it}) = it$ for these $t$ so that
$$\int_0^{2\pi -\epsilon} \frac{z'(t)}{z(t)} dt = \log(e^{i(2\pi -\epsilon)}) - \log(e^{i0}) = (2\pi -\epsilon)i$$
which yields
$$\lim_{\epsilon \to 0} \int_0^{2\pi -\epsilon} \frac{z'(t)}{z(t)} dt = 2\pi i.$$
Let us now discuss your integral
$$I=\int_C\frac{2z}{2+z^2}dz$$
where $C$ is the circle $|z|=2$ taken with positive orientation. It is parameterized by $z : [0,2\pi] \to \mathbb C, z(t) = 2e^{it}$.
You proved that $I = 4\pi i$, but you were confused by the alternative approach based on WolframAlpha which seems to result in $I = 0$.
Writing $f(z) = 2+z^2$ and $w(t) = f(z(t)) = 4e^{2it}+2$ we have
$$I = \int_C \frac{f'(z)}{f(z)} dz = \int_0^{2\pi}\frac{f'(z(t))}{f(z)t))}z'(t)dt = \int_0^{2\pi}\frac{w'(t)}{w(t)}dt .$$
Again $\log \circ w$ seems to be an antiderivative of $\frac{w'}{w}$ and this seems to prove $I = 0$ by the FTC.
$w$ is a closed curve which traverses the circle $S$ with center $2$ and radius $4$ twice in positive direction. In order that the FTC applies $\log$ must be defined on an open neighborhood $U$ of $S$ and must be complex differentiable on $U$. We know that such $\log$ does not exist, thus the conclusion $I = 0$ is invalid.
Nevertheless we can again compute $I$ by using logarithms on sliced planes. Let us first observe that $\int_0^{2\pi} \frac{w'(t)}{w(t)}dt = \int_0^{\pi} \frac{w'(t)}{w(t)}dt + \int_{\pi}^{2\pi} \frac{w'(t)}{w(t)}dt$. Since $w(\pi +t) = w(t)$, we see that $\int_0^{\pi} \frac{w'(t)}{w(t)}dt = \int_{\pi}^{2\pi} \frac{w'(t)}{w(t)}dt$ so that $I = 2 \int_0^{\pi} \frac{w'(t)}{w(t)}dt$.
Taking once more a branch cut slightly below the positive $x$-axis, we get a branch $\log$ of the logarithm which is defined for all $w(t)$ with $t \in [0,\pi-\epsilon]$ and satisfies $\log (e^{it}) = it$ for these $t$, we get
$$\int_0^{\pi} \frac{w'(t)}{w(t)}dt = \lim_{\epsilon \to 0} \int_0^{\pi-\epsilon} \frac{w'(t)}{w(t)}dt = \lim_{\epsilon \to 0} (\log(w(\pi-\epsilon)) - \log(w(0))).$$
Unfortunately there is no explicit formula for $\log(w(t))$, but we can write $w(t) = r(t)e^{is(t)}$ with $r(t) = \lvert w(t) \rvert$ and a real-valued increasing $s(t)$ such that $s(0) = 0$ and $s(t) \to 2\pi$ as $t \to \pi$. Then
$$\log(w(\pi-\epsilon)) = \log(r(\pi-\epsilon)e^{is(\pi-\epsilon)})= \log r(\pi-\epsilon)) + is(\pi-\epsilon) \to \log 6 + 2\pi i$$
as $ \epsilon\to \pi$. Since $\log(w(0)) = \log 6$, we see that $\int_0^{\pi} \frac{w'(t)}{w(t)}dt = 2\pi i$.