Test: IpConnectivityMetricsTest passes. Also manually changed the new
setting and verified the buffer size is as expected after flushing the
buffer.
Bug: 32198637
(cherry pick from commit d5f78a08b4)
Change-Id: Ie7ca1638533479601c5983bb6e54705003561b6c