Hope you don't mind the drive-by comment. If I understand correctly, we have been inadvertently truncating anonymous ids in the database, right?

If so, with this check to see if they match, wouldn't all truncated values that were saved to DB always fail. If so, do we want to do this "log as error and continue" the right thing to do?

Do we expect a significant number of truncated pieces of data to already be in the prod database?