1 instantiation of SocketsTelemetry
System.Net.Sockets (1)
System\Net\Sockets\SocketsTelemetry.cs (1)
17
public static readonly SocketsTelemetry Log = new
SocketsTelemetry
();
67 references to SocketsTelemetry
System.Net.Sockets (67)
System\Net\Sockets\Socket.cs (57)
1055
if (
SocketsTelemetry
.Log.IsEnabled())
SocketsTelemetry
.Log.AcceptStart(socketAddress);
1072
SocketsTelemetry
.Log.AfterAccept(SocketError.Interrupted, ex.Message);
1082
SocketsTelemetry
.Log.AfterAccept(errorCode);
1088
SocketsTelemetry
.Log.AfterAccept(SocketError.Success);
1167
else if (
SocketsTelemetry
.Log.IsEnabled())
1169
SocketsTelemetry
.Log.BytesSent(bytesTransferred);
1170
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramSent();
1214
else if (
SocketsTelemetry
.Log.IsEnabled())
1216
SocketsTelemetry
.Log.BytesSent(bytesTransferred);
1217
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramSent();
1259
else if (
SocketsTelemetry
.Log.IsEnabled())
1261
SocketsTelemetry
.Log.BytesSent(bytesTransferred);
1262
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramSent();
1367
else if (
SocketsTelemetry
.Log.IsEnabled())
1369
SocketsTelemetry
.Log.BytesSent(bytesTransferred);
1370
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramSent();
1449
else if (
SocketsTelemetry
.Log.IsEnabled())
1451
SocketsTelemetry
.Log.BytesSent(bytesTransferred);
1452
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramSent();
1490
else if (
SocketsTelemetry
.Log.IsEnabled())
1492
SocketsTelemetry
.Log.BytesSent(bytesTransferred);
1493
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramSent();
1556
else if (
SocketsTelemetry
.Log.IsEnabled())
1558
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
1559
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
1597
else if (
SocketsTelemetry
.Log.IsEnabled())
1599
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
1600
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
1654
else if (
SocketsTelemetry
.Log.IsEnabled())
1656
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
1657
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
1694
else if (
SocketsTelemetry
.Log.IsEnabled())
1696
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
1697
if (errorCode == SocketError.Success && SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
1781
else if (
SocketsTelemetry
.Log.IsEnabled())
1783
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
1784
if (errorCode == SocketError.Success && SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
1844
else if (
SocketsTelemetry
.Log.IsEnabled())
1846
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
1847
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
1968
else if (
SocketsTelemetry
.Log.IsEnabled())
1970
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
1971
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
2041
else if (
SocketsTelemetry
.Log.IsEnabled())
2043
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
2044
if (SocketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
2857
if (
SocketsTelemetry
.Log.IsEnabled())
SocketsTelemetry
.Log.AcceptStart(_rightEndPoint!);
2869
SocketsTelemetry
.Log.AfterAccept(SocketError.Interrupted, ex.Message);
2944
e.ConnectActivity =
SocketsTelemetry
.Log.ConnectStart(e._socketAddress!, _protocolType, endPointSnapshot, keepActivityCurrent: true);
2954
SocketsTelemetry
.Log.AfterConnect(SocketError.NotSocket, e.ConnectActivity, ex.Message);
2971
SocketsTelemetry
.Log.AfterConnect(SocketError.NotSocket, e.ConnectActivity, ex.Message);
3353
Activity? activity =
SocketsTelemetry
.Log.ConnectStart(socketAddress, _protocolType, endPointSnapshot, keepActivityCurrent: false);
3361
SocketsTelemetry
.Log.AfterConnect(SocketError.NotSocket, activity, ex.Message);
3374
SocketsTelemetry
.Log.AfterConnect(errorCode, activity);
3379
SocketsTelemetry
.Log.AfterConnect(SocketError.Success, activity);
System\Net\Sockets\SocketAsyncEventArgs.cs (9)
227
SocketsTelemetry
.Log.AfterAccept(SocketError);
231
SocketsTelemetry
.Log.AfterConnect(SocketError, ConnectActivity);
562
(
SocketsTelemetry
.Log.IsEnabled() && (operation == SocketAsyncOperation.Connect || operation == SocketAsyncOperation.Accept)))
846
if (
SocketsTelemetry
.Log.IsEnabled()) LogBytesTransferEvents(_connectSocket?.SocketType, SocketAsyncOperation.Connect, internalArgs.BytesTransferred);
1010
if (
SocketsTelemetry
.Log.IsEnabled()) LogBytesTransferEvents(_currentSocket?.SocketType, _completedOperation, bytesTransferred);
1060
SocketsTelemetry
.Log.BytesReceived(bytesTransferred);
1061
if (socketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramReceived();
1067
SocketsTelemetry
.Log.BytesSent(bytesTransferred);
1068
if (socketType == SocketType.Dgram)
SocketsTelemetry
.Log.DatagramSent();
System\Net\Sockets\SocketsTelemetry.cs (1)
17
public static readonly
SocketsTelemetry
Log = new SocketsTelemetry();