Add compression for traces