How do I know that gauge fields are bosons? QED and the Dirac equation have field operators $\psi$ interact with a gauge field $A^{\mu}$.
We identify $\psi$ as a fermionic field and $A^{\mu}$  as a gauge boson - the photon.
Do we or can we know that one is a fermion and the other is a boson? 
Or do we get that information from the commutation relations when we quantise the theory?
 A: By the spin-statistics theorem, half integer spin is associated with fermions whereas integer spin is associated with bosons. Gauge fields transform as vectors under Lorentz transformations therefore they have spin one and are bosons.
A: The possible Lorentz invariant wave equations is a relatively limited set of equations. Most wave equations one can write will not be Lorentz invariant under any transformation law you can think of.
We know all the possible finite dim Lorentz invariant field equations. One of the properties of these equations is that each of them have a distinct number associated with them that relates to their angular momentum. We need some representation theory to exactly explain what I mean by this, but trust me that there is a number. This number represents how rotations effect the equations, and it is in fact the "Equation's spin". When quantised, this is the particle's spin. 
So once you see a particle's wave equation, you can always tell the spin of the particle. From this point you can look at the gauge field's differential equation and immediately tell what is the gauge particle's spin. You can also ask the reverse question - what are the possible wave equations of a spin 7/2 particle?
The main point is, that the possible Lorentz invariant field equations is such a limited set, that we can tell from the wave equations themselves everything there is to know about the particles they represent. If the particle violates these rules, it cannot be Lorentz Invariant.
The kinetic term of the gauge fields, i.e. $ F_{\mu \nu}F^{\mu \nu}$, is only Lorentz invariant if it has spin 1. You can write different Lagrangians with different kinetic terms, and have gauge fields with different spins.
(The technical name for the "equation's spin" is the total angular momentum of the representation of the Lorentz group of the field)
