P-traces