Onion adds a lot of flavor to tomato sauce, so I recommend keeping it in the recipe. If you're not a huge fan of the texture of onions, then instead of dicing the onion, put half the onion in the tomato sauce as-is. Then take it out before serving. That way you will get the flavor without biting onion pieces.