Privacy preserving stats in Snowflake standalone proxy
While running a Snowflake standalone proxy, I can see user stats in the logs:
2021/11/10 04:27:22 Traffic throughput (up|down): 10 KB|8 KB -- (40 OnMessages, 31 Sends, over 80 seconds)
2021/11/10 04:27:22 datachannelHandler ends
2021/11/10 04:31:16 OnClose channel
2021/11/10 04:31:16 Traffic throughput (up|down): 333 KB|308 KB -- (950 OnMessages, 1184 Sends, over 2179 seconds)
2021/11/10 04:31:16 datachannelHandler ends
2021/11/10 04:33:11 sdp offer successfully received.
2021/11/10 04:33:11 Generating answer...
2021/11/10 04:33:15 OnDataChannel
2021/11/10 04:33:15 Connection successful.
2021/11/10 04:33:15 OnOpen channel
2021/11/10 04:33:15 connected to relay
2021/11/10 04:38:14 OnClose channel
2021/11/10 04:38:14 Traffic throughput (up|down): 227 KB|16 KB -- (141 OnMessages, 250 Sends, over 299 seconds)
2021/11/10 04:38:14 datachannelHandler ends
2021/11/10 04:39:15 sdp offer successfully received.
2021/11/10 04:39:15 Generating answer...
It would be nice to have privacy preserving stats, so instead of information per user, we could have aggregated stats like bridge's heartbeat, for example:
Nov 11 02:02:59.000 [notice] Heartbeat: Tor's uptime is 10 days 12:00 hours, with 27 circuits open. I've sent 70 GB and received 70 GB. I've received 6251 connections on IPv4 and 711 on IPv6. I've made 78879 connections with IPv4 and 17757 with IPv6.
Nov 11 02:02:59.000 [notice] While bootstrapping, fetched this many bytes: 1601628 (microdescriptor fetch)
Nov 11 02:02:59.000 [notice] While not bootstrapping, fetched this many bytes: 152599774 (server descriptor fetch); 15050 (server descriptor upload); 17615482 (consensus network-status fetch); 1604564 (microdescriptor fetch)
Nov 11 02:02:59.000 [notice] Heartbeat: In the last 6 hours, I have seen 50 unique clients.