What is contact tracing, and how does it work with COVID-19?

What is contact tracing, and how does it work with COVID-19? The goal of contact tracing is to alert people who may have been exposed to someone with the coronavirus, and prevent them from spreading it to others.