Rename encodeMetrics to encodeAll