In a job-costing system, what costs are traced to products? What costs are allocated to products?

In a job-costing system, what costs are traced to products? What costs are allocated to products?