The Measured Trace