They do record it in the .fit file (Garmin), but Strava don't do anything with it.
Wahoo displays shifting information in their ELEMNT app, but I don't think Garmin does.
However, you can upload the .fit file to either Di2stats.com or SRAM AXS Web (
yes, it works with Di2).