The yield curve is one of the most watched indicators out there. Historically, it has inverted (i.e. longer maturity becomes lower than shorter maturity) prior to recessions. The most popular iteration of this metric takes the ten-year treasury rate and subtracts the two-year treasury rate:
And, here are the various change transformations of that metric:
Please note that charts need a moment to load as there is a significant amount of data processing.