[tor-commits] [metrics-tasks/master] Add some code for #2394.