The required weld size would normally be based on the load applied and the allowable stress of the weld. I assume the pipe standard would give limitations on minimum and maximum size of welds, type of welds, etc., that could be used. You can also check the stresses in the pipe wall.