We work over $\mathbb C$. A general linear group ${\rm GL}(V)$ acts diagonally on the tensor power $V^{\otimes n}$ as
$$(A^{\otimes n})(v_1\otimes\cdots\otimes v_n):=(Av_1)\otimes\cdots\otimes (Av_n).$$
And the symmetric group $S_n$ acts on $V^{\otimes n}$ from the right as
$$(v_1\otimes \cdots \otimes v_n)\sigma=v_{\sigma(1)}\otimes\cdots\otimes v_{\sigma(n)}.$$
The actions of ${\rm GL}(V)$ and $S_n$ commute with each other. More strongly, Schur-Weyl duality states that the complex subalgebras of ${\rm End}(V^{\otimes n})$ generated by these two actions are each other's centralizers, in addition to providing the decomposition of $V^{\otimes n}$ into irreducible representations of ${\rm GL}(V)$, which are the Schur functors applied to $V$, given explicitly by ${\Bbb S}_\lambda(V)=V^{\otimes n}\otimes_{\Bbb C[S_n]}M_\lambda$ where $M_\lambda$ are the irreducible reps of $S_n$ corresponding to integer partitions $\lambda\vdash n$. The assignment $V\mapsto\Bbb S_\lambda(V)$ is indeed functorial, which mean ${\rm GL}(V)$ also acts on $\Bbb S_\lambda(V)$.
GroupProps provides the following trace formula, but does not provide any reference or discussion:
$${\rm tr}_{\Bbb S_\lambda(V)}A=\frac{1}{n!}\sum_{\sigma\in S_n} \chi_\lambda(\sigma) \prod_{i=1}^n {\rm tr}_V(A^i)^{c_{\large i}(\sigma)}, \tag{$\circ$}$$
where $\chi_\lambda$ is the character of $M_\lambda$ and $c_i(\sigma)$ the number of length $i$ cycles in $\sigma$. According to the relation to representation theory section on Wikipedia's article on schur polynomials, it follows from something called the Weyl character formula, but I have no idea how they're related and I'm not really familiar with Lie algebras anyway. I can prove the formula when $\lambda=(1,\cdots,1)$ and $M_\lambda$ is the $1$-dimensional sign representation and $\Bbb S_\lambda(V)$ is the $n$th alternating/exterior power $\Lambda^n(V)$. Here, the trace of $g\in{\rm GL}(V)$ acting on $\Bbb S_\lambda(V)$ is the $n$th elementary symmetric polynomial in the original eigenvalues of $g$. My argument uses generating functions and Vieta's formulas, the latter which is particular to the $e_n$s, so I doubt it generalizes to arbitrary $\lambda$.
I'd like to see a self-contained proof of $(\circ)$, which doesn't assume anything about Schur polynomials, and ideally uses as little representation theory specific to $S_n$ as possible. (For instance, perhaps we could compute the trace of $g\in{\rm GL}(V)$ on $V^{\otimes n}\otimes_{\Bbb C[S_n]}(\Bbb C[S_n]\sum_{\sigma\in S_n}\chi_\lambda(\sigma)\sigma)$ and then divide by $\chi_\lambda(1)$, without ever having to actually know the values $\chi_\lambda(\sigma)$, but that might be optimistic). Your thoughts?