As its name suggest, TraceEncoder now take Trace as parameter