@@ -47,9 +47,9 @@ protected static void VerifyTag<T>(KeyValuePair<string, object?>[] tags, string
4747 }
4848 }
4949
50- private static void VerifySocketAddress ( KeyValuePair < string , object ? > [ ] tags )
50+ private static void VerifyPeerAddress ( KeyValuePair < string , object ? > [ ] tags )
5151 {
52- string ipString = ( string ) tags . Single ( t => t . Key == "server.socket .address" ) . Value ;
52+ string ipString = ( string ) tags . Single ( t => t . Key == "network.peer .address" ) . Value ;
5353 IPAddress ip = IPAddress . Parse ( ipString ) ;
5454 Assert . True ( ip . Equals ( IPAddress . Loopback . MapToIPv6 ( ) ) ||
5555 ip . Equals ( IPAddress . Loopback ) ||
@@ -122,7 +122,7 @@ protected static void VerifyOpenConnections(string actualName, object measuremen
122122 VerifySchemeHostPortTags ( tags , uri ) ;
123123 VerifyTag ( tags , "network.protocol.version" , GetVersionString ( protocolVersion ) ) ;
124124 VerifyTag ( tags , "http.connection.state" , state ) ;
125- VerifySocketAddress ( tags ) ;
125+ VerifyPeerAddress ( tags ) ;
126126 }
127127
128128 protected static void VerifyConnectionDuration ( string instrumentName , object measurement , KeyValuePair < string , object ? > [ ] tags , Uri uri , Version ? protocolVersion )
@@ -132,7 +132,7 @@ protected static void VerifyConnectionDuration(string instrumentName, object mea
132132 Assert . InRange ( value , double . Epsilon , 60 ) ;
133133 VerifySchemeHostPortTags ( tags , uri ) ;
134134 VerifyTag ( tags , "network.protocol.version" , GetVersionString ( protocolVersion ) ) ;
135- VerifySocketAddress ( tags ) ;
135+ VerifyPeerAddress ( tags ) ;
136136 }
137137
138138 protected static void VerifyTimeInQueue ( string instrumentName , object measurement , KeyValuePair < string , object ? > [ ] tags , Uri uri , Version ? protocolVersion , string method = "GET" )
0 commit comments