System.Net.Sockets telemetry counters (#39708)
authorAlexander Nikolaev <55398552+alnikola@users.noreply.github.com>
Tue, 28 Jul 2020 14:55:12 +0000 (16:55 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2020 14:55:12 +0000 (16:55 +0200)
commitd3199700654c46994157eb4974f98a4bcb6edf76
tree1c41863bb36bafb8324f49b68a60f18c2fd38645
parent61b284325be69ce1cb9303b9dc388922590baaad
System.Net.Sockets telemetry counters (#39708)

Counters in SocketsTelemetry measuring

`bytes-received` (Bytes Received)
The cumulative total number of bytes received by all Socket objects since the process started.

`bytes-sent` (Bytes Sent)
The cumulative number of bytes sent by all Socket objects  since the process started.

`outgoing-connections-established` (Outgoing Connections Established)
The cumulative total number of outgoing connections established by Socket objects for stream sockets since the process started.

`incoming-connections-established` (Incoming Connections Established)
The cumulative total number of incoming connections established by Socket objects for stream sockets since the process started.

`datagrams-received` (Datagrams Received)
The cumulative total number of datagram packets received by all Socket objects since the process started.

`datagrams-sent` (Datagrams Sent)
The cumulative total number of datagram packets sent by all Socket objects since the process started.

Contributes to #37428
src/libraries/Common/tests/System/Diagnostics/Tracing/TestEventListener.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEventArgs.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketsTelemetry.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/TelemetryTest.cs