[tor-commits] [metrics-lib/master] Make all tests pass. Implements task-22217.