I have taken trazodone occasionally for chronic insomnia secondary to years and years of working shift work and nights.
It helps me go to sleep but doesn't help me stay asleep. There just is no going back to sleep after that first time up to the bathroom. No complaints here about side effects. I can also tell you that in years of experience as a night nurse on a general psychiatric unit, it was our go to choice for our patients and generally worked very well with very few side effects.