Call mark() on metricsWritten metric for every metric processed