The aim of this paper is to identify, analyze and compare the defects present in III-As, as a function of dislocation density, and as a function of the presence/absence of quantum dots (QDs). Such materials are of fundamental importance for the development of lasers and photodiodes for silicon photonics. The study is based on an extensive deep-level transient spectroscopy investigation, carried out on GaAs pin diodes grown on Si and on GaAs (that differ in the dislocation density), with and without embedded QDs. The original results described in this paper demonstrate that: (a) we were able to identify four different defects within the device grown on Si (three electron and one hole traps) and one defect (hole trap) in the device on GaAs, common to both samples; (b) all the majority carrier traps identified are located near midgap, i.e. are efficient non-radiative recombination centers; (c) such defects are absent (or non-detectable) in the sample grown on GaAs substrate, having a very low dislocation density; (d) the presence of QDs does not result in additional defects within the semiconductor material; (e) the analysis of the capture kinetics revealed that two of the identified traps are related to point defects, whereas the other two traps can be associated with point defects located near a dislocation; (f) a comparison with previous reports indicate that the detected traps are related to native III-As defects, or to oxygen-related complexes.