This InetSoft dashboard shows the treasury yield curve from 1990 through 2022, with the option to compare specific years. As you can see, the treasury yield curve has been inverted for a while. Past recessions showed similar patterns. Interact with the dashboard here.