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