The irreducible representations in this case are all finite-dimensional (this is part of the Peter–Weyl theorem); so the notion of trace is the usual one from linear algebra.
In this scenario, all irreducible representations are finite-dimensional (as stated by the Peter–Weyl theorem), meaning that the trace notion follows the usual definition in linear algebra.